Commit 7a3dabdc47

Andrew Kelley <andrew@ziglang.org>
2023-03-01 00:55:51
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 parent 986a30e
Changed files (1)
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);
 }