Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
L ldpl
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 8
    • Issues 8
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Lartu
  • ldpl
  • Merge requests
  • !84

Merged
Created May 07, 2019 by Lartu@lartu🐕Maintainer

Advise Windows user to change git core.autoclrf config

  • Overview 1
  • Commits 1
  • Changes 1

Created by: giant-teapot

Earlier, I was trying to build LDPL on Windows (for æsthetic reasons, let's say) and stumble on a lenghty compilation error. ldpl_included_lib.cpp was ill-formed.

I had no such issue on GNU/Linux, and I quickly found out that Awk does not work well with DOS EOL. For instance, where you would expect:

void add_ldpllib(compiler_state & state){
    state.add_var_code("#include <sstream>");
    state.add_var_code("#include <math.h>");

this is what I had:

void add_ldpllib(compiler_state & state){
    state.add_var_code("#include <sstream>
");
    state.add_var_code("#include <math.h>
");

I though it would be wise to mention in the README that windows user should change their git config to use Unix EOL. It's not like it's an issue with most available tools and editor nowadays.

I'll also check the documentation repo to mention this pitfall there as well.

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: github/fork/giant-teapot/doc/autoclrf