Skip to content

Commit 45a9e2c

Browse files
authored
std.zig.LibCDirs: fix wasi-libc support
1 parent 9a3540d commit 45a9e2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/zig/LibCDirs.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ pub fn detectFromBuilding(
168168

169169
const generic_name = libCGenericName(target);
170170
// Some architecture families are handled by the same set of headers.
171-
const arch_name = if (target.isMuslLibC())
171+
const arch_name = if (target.isMuslLibC() or target.isWasiLibC())
172172
std.zig.target.muslArchNameHeaders(target.cpu.arch)
173173
else if (target.isFreeBSDLibC())
174174
std.zig.target.freebsdArchNameHeaders(target.cpu.arch)

0 commit comments

Comments
 (0)