mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
koch: build release version of nimble
This commit is contained in:
4
koch.nim
4
koch.nim
@@ -178,7 +178,7 @@ proc bundleNimbleExe() =
|
||||
bundleNimbleSrc()
|
||||
# now compile Nimble and copy it to $nim/bin for the installer.ini
|
||||
# to pick it up:
|
||||
nimexec("c dist/nimble/src/nimble.nim")
|
||||
nimexec("c -d:release dist/nimble/src/nimble.nim")
|
||||
copyExe("dist/nimble/src/nimble".exe, "bin/nimble".exe)
|
||||
|
||||
proc buildNimble(latest: bool) =
|
||||
@@ -205,7 +205,7 @@ proc buildNimble(latest: bool) =
|
||||
else:
|
||||
exec("git checkout -f stable")
|
||||
exec("git pull")
|
||||
nimexec("c --noNimblePath -p:compiler " & installDir / "src/nimble.nim")
|
||||
nimexec("c --noNimblePath -p:compiler -d:release " & installDir / "src/nimble.nim")
|
||||
copyExe(installDir / "src/nimble".exe, "bin/nimble".exe)
|
||||
|
||||
proc bundleNimsuggest(buildExe: bool) =
|
||||
|
||||
Reference in New Issue
Block a user