mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-22 00:41:28 +00:00
fixes the problem of compiling vccexe.exe when it is in use.
This commit is contained in:
8
koch.nim
8
koch.nim
@@ -156,7 +156,13 @@ proc bundleNimsuggest(args: string) =
|
||||
options = "-d:release -d:danger " & args)
|
||||
|
||||
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) =
|
||||
nimCompileFold("Compile nimpretty", "nimpretty/nimpretty.nim",
|
||||
|
||||
Reference in New Issue
Block a user