Commit c1fd459f14

Andrew Kelley <andrew@ziglang.org>
2021-10-27 07:08:51
stage2: fix crash report code in release builds
1 parent 11a60e8
Changed files (1)
src/crash_report.zig
@@ -16,7 +16,7 @@ pub const is_enabled = builtin.mode == .Debug;
 /// You will also need to call initialize() on startup, preferably as the very first operation in your program.
 pub const root_decls = struct {
     pub const panic = if (is_enabled) compilerPanic else std.builtin.default_panic;
-    pub const enable_segfault_handler = if (is_enabled) false else debug.default_enable_segfault_handler;
+    pub const enable_segfault_handler = false;
 };
 
 /// Install signal handlers to identify crashes and report diagnostics.