summary refs log tree commit diff stats
path: root/tools
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2021-06-28 08:15:20 -0700
committerGitHub <noreply@github.com>2021-06-28 17:15:20 +0200
commitcb9496693a718cdb9ad8b764f82f524efe943bd2 (patch)
tree900c3c6326afa08fac231a71d7c704c14900fc86 /tools
parent0be17f5d9c6b66a8f8dda83c9a3c77c61be3844d (diff)
downloadNim-cb9496693a718cdb9ad8b764f82f524efe943bd2.tar.gz
`./koch tools` now builds bin/nim_dbg, a debug version of nim (#18289)
Diffstat (limited to 'tools')
-rw-r--r--tools/kochdocs.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/kochdocs.nim b/tools/kochdocs.nim
index 469059348..8e8085f73 100644
--- a/tools/kochdocs.nim
+++ b/tools/kochdocs.nim
@@ -98,8 +98,9 @@ proc nimCompile*(input: string, outputDir = "bin", mode = "c", options = "") =
   let cmd = findNim().quoteShell() & " " & mode & " -o:" & output & " " & options & " " & input
   exec cmd
 
-proc nimCompileFold*(desc, input: string, outputDir = "bin", mode = "c", options = "") =
-  let output = outputDir / input.splitFile.name.exe
+proc nimCompileFold*(desc, input: string, outputDir = "bin", mode = "c", options = "", outputName = "") =
+  let outputName2 = if outputName.len == 0: input.splitFile.name.exe else: outputName.exe
+  let output = outputDir / outputName2
   let cmd = findNim().quoteShell() & " " & mode & " -o:" & output & " " & options & " " & input
   execFold(desc, cmd)