zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit bdfbf432dd626b495cee0a8aa53e77b4ef718ff2 (tree)
parent 9787df9421ad9d3fcb08cc7b394656542b16cfae
Author: Jari Vetoniemi <jari.vetoniemi@cloudef.pw>
Date:   Tue, 12 May 2026 13:06:30 +0900

std.process.abort: trap on freestanding

Diffstat:
Mlib/std/process.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/process.zig b/lib/std/process.zig @@ -846,7 +846,7 @@ pub fn abort() noreturn { exit(127); // Pid 1 might not be signalled in some containers. } switch (native_os) { - .uefi, .wasi, .emscripten, .cuda, .amdhsa => @trap(), + .uefi, .wasi, .emscripten, .cuda, .amdhsa, .other, .freestanding => @trap(), else => posix.system.abort(), } }