aboutsummaryrefslogtreecommitdiff
path: root/src/target.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/target.zig')
-rw-r--r--src/target.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/target.zig b/src/target.zig
index 28b4771d0a..2a3b1d858c 100644
--- a/src/target.zig
+++ b/src/target.zig
@@ -57,6 +57,7 @@ pub const available_libcs = [_]ArchOsAbi{
.{ .arch = .sparc, .os = .linux, .abi = .gnu },
.{ .arch = .sparcv9, .os = .linux, .abi = .gnu },
.{ .arch = .wasm32, .os = .freestanding, .abi = .musl },
+ .{ .arch = .wasm32, .os = .wasi, .abi = .musl },
.{ .arch = .x86_64, .os = .linux, .abi = .gnu },
.{ .arch = .x86_64, .os = .linux, .abi = .gnux32 },
.{ .arch = .x86_64, .os = .linux, .abi = .musl },
@@ -145,6 +146,7 @@ pub fn libcNeedsLibUnwind(target: std.Target) bool {
.watchos,
.tvos,
.freestanding,
+ .wasi, // Wasm/WASI currently doesn't offer support for libunwind, so don't link it.
=> false,
.windows => target.abi != .msvc,