fixes the problem of compiling vccexe.exe when it is in use.
This commit is contained in:
parent
7e1ae35195
commit
9ac2ee7b8d
1 changed files with 7 additions and 1 deletions
8
koch.nim
8
koch.nim
|
|
@ -156,7 +156,13 @@ proc bundleNimsuggest(args: string) =
|
||||||
options = "-d:release -d:danger " & args)
|
options = "-d:release -d:danger " & args)
|
||||||
|
|
||||||
proc buildVccTool(args: string) =
|
proc buildVccTool(args: string) =
|
||||||
nimCompileFold("Compile Vcc", "tools/vccexe/vccexe.nim ", options = args)
|
let input = "tools/vccexe/vccexe.nim"
|
||||||
|
if contains(args, "--cc:vcc"):
|
||||||
|
nimCompileFold("Compile Vcc", input, "build", options = args)
|
||||||
|
let fileName = input.splitFile.name
|
||||||
|
moveFile(exe("build" / fileName), exe("bin" / fileName))
|
||||||
|
else:
|
||||||
|
nimCompileFold("Compile Vcc", input, options = args)
|
||||||
|
|
||||||
proc bundleNimpretty(args: string) =
|
proc bundleNimpretty(args: string) =
|
||||||
nimCompileFold("Compile nimpretty", "nimpretty/nimpretty.nim",
|
nimCompileFold("Compile nimpretty", "nimpretty/nimpretty.nim",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue