| ... | ... | @@ -121,10 +121,12 @@ pub fn buildLibCXX(comp: *Compilation) !void { |
| 121 | 121 | continue; |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | | if (target.os.tag != .windows) { |
| 125 | | if (std.mem.startsWith(u8, cxx_src, "src/support/win32/")) |
| 126 | | continue; |
| 127 | | } |
| 124 | if (std.mem.startsWith(u8, cxx_src, "src/support/win32/") and target.os.tag != .windows) |
| 125 | continue; |
| 126 | if (std.mem.startsWith(u8, cxx_src, "src/support/solaris/") and target.os.tag != .solaris) |
| 127 | continue; |
| 128 | if (std.mem.startsWith(u8, cxx_src, "src/support/ibm/") and target.os.tag != .zos) |
| 129 | continue; |
| 128 | 130 | |
| 129 | 131 | try cflags.append("-DNDEBUG"); |
| 130 | 132 | try cflags.append("-D_LIBCPP_BUILDING_LIBRARY"); |