mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 11:42:33 +00:00
committed by
Andreas Rumpf
parent
8e600b78ca
commit
0bb76dde54
@@ -26,6 +26,10 @@ build_nim_csources(){
|
||||
|
||||
[ -f $nim_csources ] || echo_run build_nim_csources
|
||||
|
||||
echo_run bin/nim c koch # Note: if fails, may need to `cd csources && git pull`
|
||||
# Note: if fails, may need to `cd csources && git pull`
|
||||
# Note: --skipUserCfg is to prevent newer flags from
|
||||
# breaking bootstrap phase
|
||||
echo_run bin/nim c --skipUserCfg koch
|
||||
|
||||
echo_run ./koch boot -d:release
|
||||
echo_run ./koch tools # Compile Nimble and other tools.
|
||||
|
||||
9
koch.nim
9
koch.nim
@@ -285,8 +285,13 @@ proc boot(args: string) =
|
||||
copyExe(findStartNim(), 0.thVersion)
|
||||
for i in 0..2:
|
||||
echo "iteration: ", i+1
|
||||
exec i.thVersion & " $# $# --nimcache:$# compiler" / "nim.nim" % [bootOptions, args,
|
||||
smartNimcache]
|
||||
let extraOption = if i == 0:
|
||||
"--skipUserCfg"
|
||||
# forward compatibility: for bootstrap (1st iteration), avoid user flags
|
||||
# that could break things, see #10030
|
||||
else: ""
|
||||
exec i.thVersion & " $# $# $# --nimcache:$# compiler" / "nim.nim" %
|
||||
[bootOptions, extraOption, args, smartNimcache]
|
||||
if sameFileContent(output, i.thVersion):
|
||||
copyExe(output, finalDest)
|
||||
echo "executables are equal: SUCCESS!"
|
||||
|
||||
Reference in New Issue
Block a user