koch temp has 125 exit code for git bisect
This commit is contained in:
parent
85ae439bb8
commit
1a88e2a18b
1 changed files with 5 additions and 3 deletions
8
koch.nim
8
koch.nim
|
|
@ -77,9 +77,9 @@ proc findNim(): string =
|
||||||
# assume there is a symlink to the exe or something:
|
# assume there is a symlink to the exe or something:
|
||||||
return nim
|
return nim
|
||||||
|
|
||||||
proc exec(cmd: string) =
|
proc exec(cmd: string, errorcode: int = QuitFailure) =
|
||||||
echo(cmd)
|
echo(cmd)
|
||||||
if execShellCmd(cmd) != 0: quit("FAILURE")
|
if execShellCmd(cmd) != 0: quit("FAILURE", errorcode)
|
||||||
|
|
||||||
proc tryExec(cmd: string): bool =
|
proc tryExec(cmd: string): bool =
|
||||||
echo(cmd)
|
echo(cmd)
|
||||||
|
|
@ -341,7 +341,9 @@ proc tests(args: string) =
|
||||||
proc temp(args: string) =
|
proc temp(args: string) =
|
||||||
var output = "compiler" / "nim".exe
|
var output = "compiler" / "nim".exe
|
||||||
var finalDest = "bin" / "nim_temp".exe
|
var finalDest = "bin" / "nim_temp".exe
|
||||||
exec("nim c compiler" / "nim")
|
# 125 is the magic number to tell git bisect to skip the current
|
||||||
|
# commit.
|
||||||
|
exec("nim c compiler" / "nim", 125)
|
||||||
copyExe(output, finalDest)
|
copyExe(output, finalDest)
|
||||||
if args.len > 0: exec(finalDest & " " & args)
|
if args.len > 0: exec(finalDest & " " & args)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue