diff --git a/src/libcxx.zig b/src/libcxx.zig index 2da680a40d294f5ebe5102c4ee313ef2a687ab48..14ef2a7b04b1056efb23b5d980b83730a3f94d0c 100644 --- a/src/libcxx.zig +++ b/src/libcxx.zig @@ -114,8 +114,8 @@ pub fn buildLibCXX(comp: *Compilation) !void { for (libcxx_files) |cxx_src| { var cflags = std.ArrayList([]const u8).init(arena); - if (target.os.tag == .windows or target.os.tag == .wasi) { - // Filesystem stuff isn't supported on WASI and Windows. + if ((target.os.tag == .windows and target.abi == .msvc) or target.os.tag == .wasi) { + // Filesystem stuff isn't supported on WASI and Windows (MSVC). if (std.mem.startsWith(u8, cxx_src, "src/filesystem/")) continue; }