diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-08-17 11:56:11 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-08-20 19:18:11 +0200 |
| commit | 07cc32b0041e5e12f72d682fd06a995fe904d556 (patch) | |
| tree | 00b5449a6e8a8faf3f7b4423c685c28b82609f61 /lib/std | |
| parent | d748cc9c12ba852ac02edf55eb418b06086d211c (diff) | |
| download | zig-07cc32b0041e5e12f72d682fd06a995fe904d556.tar.gz zig-07cc32b0041e5e12f72d682fd06a995fe904d556.zip | |
wasi-libc: update to c89896107d7b57aef69dcadede47409ee4f702ee
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/start.zig | 2 | ||||
| -rw-r--r-- | lib/std/zig/target.zig | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/std/start.zig b/lib/std/start.zig index 30543ead8a..c71aee529e 100644 --- a/lib/std/start.zig +++ b/lib/std/start.zig @@ -57,7 +57,7 @@ comptime { } else if (builtin.output_mode == .Exe or @hasDecl(root, "main")) { if (builtin.link_libc and @hasDecl(root, "main")) { if (native_arch.isWasm()) { - @export(&mainWithoutEnv, .{ .name = "main" }); + @export(&mainWithoutEnv, .{ .name = "__main_argc_argv" }); } else if (!@typeInfo(@TypeOf(root.main)).@"fn".calling_convention.eql(.c)) { @export(&main, .{ .name = "main" }); } diff --git a/lib/std/zig/target.zig b/lib/std/zig/target.zig index 873aa64688..651adfcfe2 100644 --- a/lib/std/zig/target.zig +++ b/lib/std/zig/target.zig @@ -361,6 +361,8 @@ pub fn isLibCLibName(target: *const std.Target, name: []const u8) bool { return true; if (target.os.tag == .wasi) { + if (eqlIgnoreCase(ignore_case, name, "setjmp")) + return true; if (eqlIgnoreCase(ignore_case, name, "wasi-emulated-getpid")) return true; if (eqlIgnoreCase(ignore_case, name, "wasi-emulated-mman")) |
