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;...@@ -16,7 +16,7 @@ pub const is_enabled = builtin.mode == .Debug;
16/// You will also need to call initialize() on startup, preferably as the very first operation in your program.16/// You will also need to call initialize() on startup, preferably as the very first operation in your program.
17pub const root_decls = struct {17pub const root_decls = struct {
18 pub const panic = if (is_enabled) compilerPanic else std.builtin.default_panic;18 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;
20};20};
2121
22/// Install signal handlers to identify crashes and report diagnostics.22/// Install signal handlers to identify crashes and report diagnostics.