mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-16 16:14:20 +00:00
koch temp: use -d:leanCompiler if possible
(cherry picked from commit 7a39eb13a5)
This commit is contained in:
4
koch.nim
4
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)
|
||||
|
||||
Reference in New Issue
Block a user