(cherry picked from commit 556f217b4c)

This commit is contained in:
Juan M Gómez
2024-12-16 07:05:00 +00:00
committed by narimiran
parent 1778b8354a
commit 9e5cdc43a6
4 changed files with 11 additions and 9 deletions

View File

@@ -24,6 +24,6 @@ if not exist %nim_csources% (
cd ..
copy /y bin\nim.exe %nim_csources%
)
bin\nim.exe c --noNimblePath --skipUserCfg --skipParentCfg --hints:off koch
koch boot -d:release --skipUserCfg --skipParentCfg --hints:off
koch tools --skipUserCfg --skipParentCfg --hints:off
bin\nim.exe c --noNimblePath --skipUserCfg --skipParentCfg --hints:off koch
koch boot -d:release --skipUserCfg --skipParentCfg --hints:off
koch tools --skipUserCfg --hints:off

View File

@@ -13,5 +13,5 @@ nimBuildCsourcesIfNeeded "$@"
echo_run bin/nim c --noNimblePath --skipUserCfg --skipParentCfg --hints:off koch
echo_run ./koch boot -d:release --skipUserCfg --skipParentCfg --hints:off
echo_run ./koch tools --skipUserCfg --skipParentCfg --hints:off
echo_run ./koch tools --skipUserCfg --hints:off

View File

@@ -42,9 +42,9 @@ triggers:
proc genBuildExtras(echoRun, koch, nim: string): string =
result = fmt"""
{echoRun} {nim} c --noNimblePath --skipUserCfg --skipParentCfg --hints:off koch
{echoRun} {koch} boot -d:release --skipUserCfg --skipParentCfg --hints:off
{echoRun} {koch} tools --skipUserCfg --skipParentCfg --hints:off
{echoRun}{nim} c --noNimblePath --skipUserCfg --skipParentCfg --hints:off koch
{echoRun}{koch} boot -d:release --skipUserCfg --skipParentCfg --hints:off
{echoRun}{koch} tools --skipUserCfg --hints:off
"""
proc genWindowsScript(buildAll: bool): string =

View File

@@ -46,5 +46,7 @@ proc cloneDependency*(destDirBase: string, url: string, commit = commitHead,
proc updateSubmodules*(dir: string) =
let oldDir = getCurrentDir()
setCurrentDir(dir)
exec "git submodule update --init"
setCurrentDir(oldDir)
try:
exec "git submodule update --init"
finally:
setCurrentDir(oldDir)