From 5e1a83ad2975afdca4f3c9d11ace61fa5dad205a Mon Sep 17 00:00:00 2001 From: Pat Tullmann Date: Sun, 28 Jul 2024 13:14:45 -0700 Subject: defaultPanic: @trap on 'other' target The freestanding and other OS targets by default need to just @trap in the default Panic implementation. And `isValidMemory` won't work with freestanding or other targets. Update the unwind_freestanding.zig test case to also run on the 'other' OS target, too. This should keep the Zig's stacktrace generation from regressing on the standalone targets. --- lib/std/debug.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/std/debug.zig') diff --git a/lib/std/debug.zig b/lib/std/debug.zig index 0756e456ff..e8855f5d1a 100644 --- a/lib/std/debug.zig +++ b/lib/std/debug.zig @@ -480,7 +480,7 @@ pub fn defaultPanic( } switch (builtin.os.tag) { - .freestanding => { + .freestanding, .other => { @trap(); }, .uefi => { -- cgit v1.2.3