mirror of
https://github.com/ziglang/zig.git
synced 2026-02-17 06:49:23 +00:00
stage2: fix crash report code in release builds
This commit is contained in:
parent
11a60e8779
commit
c1fd459f14
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user