mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
use @trap instead of system.abort for emscripten
This commit is contained in:
parent
5df6c70a32
commit
7f11c19450
1 changed files with 1 additions and 1 deletions
|
|
@ -752,7 +752,7 @@ pub fn abort() noreturn {
|
|||
exit(127); // Pid 1 might not be signalled in some containers.
|
||||
}
|
||||
switch (builtin.os.tag) {
|
||||
.uefi, .wasi, .cuda, .amdhsa => @trap(),
|
||||
.uefi, .wasi, .emscripten, .cuda, .amdhsa => @trap(),
|
||||
else => system.abort(),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue