QUICK_AND_DIRTY_COMPILER: add a bootstrap iteration

This commit is contained in:
Ștefan Talpalaru 2021-01-10 22:53:15 +01:00
parent fcfbfaacd9
commit 98b580a00e
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
2 changed files with 20 additions and 3 deletions

View File

@ -140,13 +140,11 @@ Link PCRE, defaults to 1.
### QUICK_AND_DIRTY_COMPILER
Skip multiple Nim compiler bootstrap iterations and tool building. Useful in
Skip some Nim compiler bootstrap iterations and tool building. Useful in
CI. Defaults to 0.
`make QUICK_AND_DIRTY_COMPILER=1 build-nim`
__Don't use this!__ It produces [a buggy Nim-1.2.6 compiler](https://github.com/status-im/nimbus-eth2/pull/2220).
## Make targets
### build

View File

@ -148,7 +148,26 @@ build_nim() {
--skipUserCfg \
--skipParentCfg \
compiler/nim.nim
cp -a compiler/nim bin/nim1
# If we stop here, we risk ending up with a buggy compiler: https://github.com/status-im/nimbus-eth2/pull/2220
bin/nim1 \
c \
--compileOnly \
--nimcache:nimcache \
-d:release \
--skipUserCfg \
--skipParentCfg \
--warnings:off \
--hints:off \
compiler/nim.nim
bin/nim1 \
jsonscript \
--nimcache:nimcache \
--skipUserCfg \
--skipParentCfg \
compiler/nim.nim
cp -a compiler/nim bin/nim
rm bin/nim1
fi
# record the last commit's timestamp