authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-10-26 22:08:51-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-10-26 22:08:51-07:00
logc1fd459f14d9e89c0b38b1afc531a7b67e3a2759
treee085a50ab5e87060ca8027773ab1ebd2ed19aa19
parent11a60e87791c13d89d770c7925c744b5fe75e5c4

stage2: fix crash report code in release builds


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

src/crash_report.zig+1-1
......@@ -16,7 +16,7 @@ pub const is_enabled = builtin.mode == .Debug;
1616/// You will also need to call initialize() on startup, preferably as the very first operation in your program.
1717pub const root_decls = struct {
1818 pub const panic = if (is_enabled) compilerPanic else std.builtin.default_panic;
19 pub const enable_segfault_handler = if (is_enabled) false else debug.default_enable_segfault_handler;
19 pub const enable_segfault_handler = false;
2020};
2121
2222/// Install signal handlers to identify crashes and report diagnostics.