mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
stage2: libcxx: logic for skipping OS-specific files
This commit is contained in:
parent
173db6eea6
commit
a338eaccc8
@ -121,10 +121,12 @@ pub fn buildLibCXX(comp: *Compilation) !void {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (target.os.tag != .windows) {
|
||||
if (std.mem.startsWith(u8, cxx_src, "src/support/win32/"))
|
||||
continue;
|
||||
}
|
||||
if (std.mem.startsWith(u8, cxx_src, "src/support/win32/") and target.os.tag != .windows)
|
||||
continue;
|
||||
if (std.mem.startsWith(u8, cxx_src, "src/support/solaris/") and target.os.tag != .solaris)
|
||||
continue;
|
||||
if (std.mem.startsWith(u8, cxx_src, "src/support/ibm/") and target.os.tag != .zos)
|
||||
continue;
|
||||
|
||||
try cflags.append("-DNDEBUG");
|
||||
try cflags.append("-D_LIBCPP_BUILDING_LIBRARY");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user