aboutsummaryrefslogtreecommitdiff
path: root/lib/build_runner.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-02-28 16:55:51 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-03-15 10:48:13 -0700
commit7a3dabdc4738c2816bede92571ccdf481d400997 (patch)
treef83504a912801c2568dd7079339b47c160c3b799 /lib/build_runner.zig
parent986a30e373f6b2f0da2de64570013c83cacc17b6 (diff)
downloadzig-7a3dabdc4738c2816bede92571ccdf481d400997.tar.gz
zig-7a3dabdc4738c2816bede92571ccdf481d400997.zip
build runner: account for debug builds in cleanExit
build runner is always compiled in debug mode, so the switch on optimization here was silly.
Diffstat (limited to 'lib/build_runner.zig')
-rw-r--r--lib/build_runner.zig9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/build_runner.zig b/lib/build_runner.zig
index b95c36a196..bb3fb42f0e 100644
--- a/lib/build_runner.zig
+++ b/lib/build_runner.zig
@@ -644,9 +644,8 @@ fn argsRest(args: [][]const u8, idx: usize) ?[][]const u8 {
}
fn cleanExit() void {
- if (builtin.mode == .Debug) {
- return;
- } else {
- process.exit(0);
- }
+ // Perhaps in the future there could be an Advanced Options flag such as
+ // --debug-build-runner-leaks which would make this function return instead
+ // of calling exit.
+ process.exit(0);
}