aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug.zig
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/debug.zig')
-rw-r--r--lib/std/debug.zig20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig
index a1753f1e77..7ac6c45903 100644
--- a/lib/std/debug.zig
+++ b/lib/std/debug.zig
@@ -468,10 +468,6 @@ const use_trap_panic = switch (builtin.zig_backend) {
.stage2_wasm,
.stage2_x86,
=> true,
- .stage2_x86_64 => switch (builtin.target.ofmt) {
- .elf, .macho => false,
- else => true,
- },
else => false,
};
@@ -484,22 +480,6 @@ pub fn defaultPanic(
if (use_trap_panic) @trap();
- switch (builtin.zig_backend) {
- .stage2_aarch64,
- .stage2_arm,
- .stage2_powerpc,
- .stage2_riscv64,
- .stage2_spirv,
- .stage2_wasm,
- .stage2_x86,
- => @trap(),
- .stage2_x86_64 => switch (builtin.target.ofmt) {
- .elf, .macho => {},
- else => @trap(),
- },
- else => {},
- }
-
switch (builtin.os.tag) {
.freestanding, .other => {
@trap();