std.process.abort: trap on freestanding

This commit is contained in:
Jari Vetoniemi
2026-05-12 13:06:30 +09:00
parent 9787df9421
commit bdfbf432dd
+1 -1
View File
@@ -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(),
}
}