parent
8e600b78ca
commit
0bb76dde54
2 changed files with 12 additions and 3 deletions
|
|
@ -26,6 +26,10 @@ build_nim_csources(){
|
||||||
|
|
||||||
[ -f $nim_csources ] || echo_run 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 boot -d:release
|
||||||
echo_run ./koch tools # Compile Nimble and other tools.
|
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)
|
copyExe(findStartNim(), 0.thVersion)
|
||||||
for i in 0..2:
|
for i in 0..2:
|
||||||
echo "iteration: ", i+1
|
echo "iteration: ", i+1
|
||||||
exec i.thVersion & " $# $# --nimcache:$# compiler" / "nim.nim" % [bootOptions, args,
|
let extraOption = if i == 0:
|
||||||
smartNimcache]
|
"--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):
|
if sameFileContent(output, i.thVersion):
|
||||||
copyExe(output, finalDest)
|
copyExe(output, finalDest)
|
||||||
echo "executables are equal: SUCCESS!"
|
echo "executables are equal: SUCCESS!"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue