From c1fd459f14d9e89c0b38b1afc531a7b67e3a2759 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 26 Oct 2021 22:08:51 -0700 Subject: [PATCH] stage2: fix crash report code in release builds --- src/crash_report.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crash_report.zig b/src/crash_report.zig index aed6efa9f0..82e1444554 100644 --- a/src/crash_report.zig +++ b/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.