Skip to content

Commit

Permalink
#Fixes nim-lang#24536 building nimble 0.16.4 fails when running build…
Browse files Browse the repository at this point in the history
…_all.sh (nim-lang#24537)
  • Loading branch information
jmgomez authored Dec 16, 2024
1 parent d31cce5 commit 556f217
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build_all.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ if not exist %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
koch tools --skipUserCfg --hints:off
2 changes: 1 addition & 1 deletion build_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

2 changes: 1 addition & 1 deletion tools/ci_generate.nim
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ 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}{koch} tools --skipUserCfg --hints:off
"""

proc genWindowsScript(buildAll: bool): string =
Expand Down
6 changes: 4 additions & 2 deletions tools/deps.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 556f217

Please sign in to comment.