Use findNim() in koch temp() (#6592)

This commit is contained in:
Stefan Rakel
2017-10-25 14:20:25 +02:00
committed by Andreas Rumpf
parent 2ca7b703fb
commit 49c6dbf4ab

View File

@@ -472,7 +472,8 @@ proc temp(args: string) =
# 125 is the magic number to tell git bisect to skip the current
# commit.
let (bootArgs, programArgs) = splitArgs(args)
exec("nim c " & bootArgs & " compiler" / "nim", 125)
let nimexec = findNim()
exec(nimexec & " c " & bootArgs & " compiler" / "nim", 125)
copyExe(output, finalDest)
if programArgs.len > 0: exec(finalDest & " " & programArgs)