From bdfbf432dd626b495cee0a8aa53e77b4ef718ff2 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Tue, 12 May 2026 13:06:30 +0900 Subject: [PATCH] std.process.abort: trap on freestanding --- lib/std/process.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/process.zig b/lib/std/process.zig index cfb5783839..9869bb2593 100644 --- 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(), } }