authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-02-28 16:55:51-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-03-15 10:48:13-07:00
log7a3dabdc4738c2816bede92571ccdf481d400997
treef83504a912801c2568dd7079339b47c160c3b799
parent986a30e373f6b2f0da2de64570013c83cacc17b6

build runner: account for debug builds in cleanExit

build runner is always compiled in debug mode, so the switch on optimization here was silly.

1 files changed, 4 insertions(+), 5 deletions(-)

lib/build_runner.zig+4-5
......@@ -644,9 +644,8 @@ fn argsRest(args: [][]const u8, idx: usize) ?[][]const u8 {
644644}
645645
646646fn cleanExit() void {
647 if (builtin.mode == .Debug) {
648 return;
649 } else {
650 process.exit(0);
651 }
647 // Perhaps in the future there could be an Advanced Options flag such as
648 // --debug-build-runner-leaks which would make this function return instead
649 // of calling exit.
650 process.exit(0);
652651}