From 1c6103825543bbbc37cdc60d9d9609c5625454f3 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Mon, 10 Jan 2022 18:50:32 +0100 Subject: [PATCH] Build fs/filesystem libcxx module when targeting GNU Win --- src/libcxx.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcxx.zig b/src/libcxx.zig index fe96207c48..8a23fb4796 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; }