From 9ac2ee7b8d80a6b4a6369626018492142889d158 Mon Sep 17 00:00:00 2001 From: rockcavera Date: Mon, 14 Dec 2020 07:07:55 -0300 Subject: [PATCH] Fix #11506 (#16348) fixes the problem of compiling vccexe.exe when it is in use. --- koch.nim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/koch.nim b/koch.nim index 628c810989..5da2628847 100644 --- a/koch.nim +++ b/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",