File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ when NimMajor > 1:
77else :
88 from std/ os import `/../`, parentDir
99import ./ os_findExe_patch
10+ when defined (windows):
11+ from std/ strutils import stripLineEnd
1012
1113# # see CPython/configure.ac
1214
2022 bind srcdir_git
2123 let res = gorgeEx (git.exe & " --git-dir " & srcdir_git & " " & sub)
2224 assert res.exitCode == 0 , res.output
23- res.output
25+ when defined (windows):
26+ var outp = res.output
27+ outp.stripLineEnd
28+ outp
29+ else : res.output
2430
2531const
2632 version = git.exec " rev-parse --short HEAD"
Original file line number Diff line number Diff line change 4141 cursor: int
4242
4343
44- const grammarLines = slurp (" Grammar" ).split ( " \n " )
44+ const grammarLines = slurp (" Grammar" ).splitLines ( )
4545
4646
4747var
You can’t perform that action at this time.
0 commit comments