summary refs log tree commit diff stats
path: root/koch.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-07-10 00:26:29 +0200
committerAraq <rumpf_a@web.de>2019-07-10 00:29:58 +0200
commit7a39eb13a56b6df3f07a59113f4137612e49287e (patch)
treecf6f1cf0cc0213fc67c8507f787f9e0892b3ce69 /koch.nim
parent2255d8795b83d8c5459a84d2d73c5c0471a5e294 (diff)
downloadNim-7a39eb13a56b6df3f07a59113f4137612e49287e.tar.gz
koch temp: use -d:leanCompiler if possible
Diffstat (limited to 'koch.nim')
-rw-r--r--koch.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/koch.nim b/koch.nim
index ac1388d9e..6819b8b0d 100644
--- a/koch.nim
+++ b/koch.nim
@@ -437,7 +437,9 @@ proc temp(args: string) =
   var finalDest = d / "bin" / "nim_temp".exe
   # 125 is the magic number to tell git bisect to skip the current
   # commit.
-  let (bootArgs, programArgs) = splitArgs(args)
+  var (bootArgs, programArgs) = splitArgs(args)
+  if "doc" notin programArgs and "threads" notin programArgs:
+    bootArgs.add " -d:leanCompiler"
   let nimexec = findNim()
   exec(nimexec & " c -d:debug --debugger:native " & bootArgs & " " & (d / "compiler" / "nim"), 125)
   copyExe(output, finalDest)