diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2019-02-18 03:18:52 -0800 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-02-18 12:18:52 +0100 |
commit | 1d66222901f0812bf5ffd5fc4e8175acb1948c9e (patch) | |
tree | 5a76f50ef76b0f6df998348044141167ba9f8f26 /koch.nim | |
parent | cf32d61fa5084ce0f8577fd7e52c8d2070188462 (diff) | |
download | Nim-1d66222901f0812bf5ffd5fc4e8175acb1948c9e.tar.gz |
fixes #10659 `koch boot` fails on windows (#10660)
Diffstat (limited to 'koch.nim')
-rw-r--r-- | koch.nim | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/koch.nim b/koch.nim index 5deda5ecd..ac95c1566 100644 --- a/koch.nim +++ b/koch.nim @@ -291,13 +291,14 @@ proc boot(args: string) = hostOs & "_" & hostCpu let nimStart = findStartNim() - copyExe(nimStart, 0.thVersion) for i in 0..2: let defaultCommand = if useCpp: "cpp" else: "c" let bootOptions = if args.len == 0 or args.startsWith("-"): defaultCommand else: "" echo "iteration: ", i+1 var extraOption = "" + var nimi = i.thVersion if i == 0: + nimi = nimStart extraOption.add " --skipUserCfg --skipParentCfg" # The configs are skipped for bootstrap # (1st iteration) to prevent newer flags from breaking bootstrap phase. @@ -307,8 +308,9 @@ proc boot(args: string) = if version.startsWith "Nim Compiler Version 0.19.0": extraOption.add " -d:nimBoostrapCsources0_19_0" # remove this when csources get updated - exec i.thVersion & " $# $# $# --nimcache:$# compiler" / "nim.nim" % - [bootOptions, extraOption, args, smartNimcache] + + exec "$# $# $# $# --nimcache:$# compiler" / "nim.nim" % + [nimi, bootOptions, extraOption, args, smartNimcache] if sameFileContent(output, i.thVersion): copyExe(output, finalDest) echo "executables are equal: SUCCESS!" |