remove redundant -p:compiler in koch.nim given modules use import compiler/foo

This commit is contained in:
Timothee Cour
2018-11-06 19:56:21 -08:00
committed by Andreas Rumpf
parent cb4d810659
commit f9bf095853

View File

@@ -144,12 +144,12 @@ proc buildNimble(latest: bool) =
else:
exec("git checkout -f stable")
exec("git pull")
nimexec("c --noNimblePath -p:compiler --nilseqs:on -d:release " & installDir / "src/nimble.nim")
nimexec("c --noNimblePath --nilseqs:on -d:release " & installDir / "src/nimble.nim")
copyExe(installDir / "src/nimble".exe, "bin/nimble".exe)
proc bundleNimsuggest(buildExe: bool) =
if buildExe:
nimexec("c --noNimblePath -d:release -p:compiler nimsuggest/nimsuggest.nim")
nimexec("c --noNimblePath -d:release nimsuggest/nimsuggest.nim")
copyExe("nimsuggest/nimsuggest".exe, "bin/nimsuggest".exe)
removeFile("nimsuggest/nimsuggest".exe)
@@ -198,7 +198,7 @@ proc buildTool(toolname, args: string) =
copyFile(dest="bin" / splitFile(toolname).name.exe, source=toolname.exe)
proc buildTools(latest: bool) =
nimexec "c --noNimblePath -p:compiler -d:release -o:" & ("bin/nimsuggest".exe) &
nimexec "c --noNimblePath -d:release -o:" & ("bin/nimsuggest".exe) &
" nimsuggest/nimsuggest.nim"
nimexec "c -d:release -o:" & ("bin/nimgrep".exe) & " tools/nimgrep.nim"