This commit is contained in:
Arne Döring 2018-10-24 13:10:44 +02:00 • committed by Andreas Rumpf
commit eb6225ad8c
5 changed files with 84 additions and 34 deletions

View file

@ -407,13 +407,14 @@ proc temp(args: string) =
result[1].add " " & quoteShell(args[i])
inc i
var output = "compiler" / "nim".exe
var finalDest = "bin" / "nim_temp".exe
let d = getAppDir()
var output = d / "compiler" / "nim".exe
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)
let nimexec = findNim()
exec(nimexec & " c -d:debug --debugger:native " & bootArgs & " compiler" / "nim", 125)
exec(nimexec & " c -d:debug --debugger:native " & bootArgs & " " & (d / "compiler" / "nim"), 125)
copyExe(output, finalDest)
if programArgs.len > 0: exec(finalDest & " " & programArgs)