isolate the build process from external config files (#13411)
This commit is contained in:
parent
ccd2e044cb
commit
3d7d06571c
2 changed files with 7 additions and 5 deletions
|
|
@ -12,5 +12,6 @@ if not exist bin\nim.exe (
|
||||||
cd ..
|
cd ..
|
||||||
)
|
)
|
||||||
bin\nim.exe c --skipUserCfg --skipParentCfg koch
|
bin\nim.exe c --skipUserCfg --skipParentCfg koch
|
||||||
koch.exe boot -d:release
|
koch.exe boot -d:release --skipUserCfg --skipParentCfg
|
||||||
koch.exe tools
|
koch.exe tools --skipUserCfg --skipParentCfg
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ build_nim_csources(){
|
||||||
# some args were passed (eg: `--cpu i386`), need to call build.sh
|
# some args were passed (eg: `--cpu i386`), need to call build.sh
|
||||||
build_nim_csources_via_script "$@"
|
build_nim_csources_via_script "$@"
|
||||||
else
|
else
|
||||||
# no args, use multhreaded (5X faster on 16 cores: 10s instead of 50s)
|
# no args, use multiple Make jobs (5X faster on 16 cores: 10s instead of 50s)
|
||||||
makeX=make
|
makeX=make
|
||||||
unamestr=$(uname)
|
unamestr=$(uname)
|
||||||
if [ "$unamestr" = 'FreeBSD' ]; then
|
if [ "$unamestr" = 'FreeBSD' ]; then
|
||||||
|
|
@ -47,5 +47,6 @@ build_nim_csources(){
|
||||||
# Note: if fails, may need to `cd csources && git pull`
|
# Note: if fails, may need to `cd csources && git pull`
|
||||||
echo_run bin/nim c --skipUserCfg --skipParentCfg koch
|
echo_run bin/nim c --skipUserCfg --skipParentCfg koch
|
||||||
|
|
||||||
echo_run ./koch boot -d:release
|
echo_run ./koch boot -d:release --skipUserCfg --skipParentCfg
|
||||||
echo_run ./koch tools # Compile Nimble and other tools.
|
echo_run ./koch tools --skipUserCfg --skipParentCfg # Compile Nimble and other tools.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue