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