QUICK_AND_DIRTY_COMPILER: add a bootstrap iteration
This commit is contained in:
parent
fcfbfaacd9
commit
98b580a00e
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue