mirror of
https://github.com/ziglang/zig.git
synced 2025-12-19 12:43:13 +00:00
build runner: account for debug builds in cleanExit
build runner is always compiled in debug mode, so the switch on optimization here was silly.
This commit is contained in:
parent
986a30e373
commit
7a3dabdc47
@ -644,9 +644,8 @@ fn argsRest(args: [][]const u8, idx: usize) ?[][]const u8 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn cleanExit() void {
|
fn cleanExit() void {
|
||||||
if (builtin.mode == .Debug) {
|
// Perhaps in the future there could be an Advanced Options flag such as
|
||||||
return;
|
// --debug-build-runner-leaks which would make this function return instead
|
||||||
} else {
|
// of calling exit.
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user