fixes ci_generate produces unnecessary spaces on Windows (#24309)

follow up https://github.com/nim-lang/Nim/pull/17899

(cherry picked from commit 3e8f44b232)
This commit is contained in:
ringabout
2024-10-14 23:43:41 +08:00
committed by narimiran
parent 4d170ac586
commit a04dada93d
2 changed files with 7 additions and 7 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 --skipParentCfg --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 --skipParentCfg --hints:off
"""
proc genWindowsScript(buildAll: bool): string =
@@ -95,7 +95,7 @@ set -e # exit on first error
. ci/funs.sh
nimBuildCsourcesIfNeeded "$@"
{genBuildExtras("echo_run", "./koch", "bin/nim")}
{genBuildExtras("echo_run ", "./koch", "bin/nim")}
"""
proc main()=