diff options
| author | Pat Tullmann <pat.github@tullmann.org> | 2024-07-28 13:14:45 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-11-29 15:30:05 -0500 |
| commit | 5e1a83ad2975afdca4f3c9d11ace61fa5dad205a (patch) | |
| tree | dbe969d38e964e3127ff4831363f01b7e08de780 /lib/std/debug.zig | |
| parent | a47aa9dd9d7f950427aacc360f1302e636234bc2 (diff) | |
| download | zig-5e1a83ad2975afdca4f3c9d11ace61fa5dad205a.tar.gz zig-5e1a83ad2975afdca4f3c9d11ace61fa5dad205a.zip | |
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.
Diffstat (limited to 'lib/std/debug.zig')
| -rw-r--r-- | lib/std/debug.zig | 2 |
1 files changed, 1 insertions, 1 deletions
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 => { |
