mirror of
https://github.com/ziglang/zig.git
synced 2025-12-24 15:13:08 +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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (target.os.tag != .windows) {
|
if (std.mem.startsWith(u8, cxx_src, "src/support/win32/") and target.os.tag != .windows)
|
||||||
if (std.mem.startsWith(u8, cxx_src, "src/support/win32/"))
|
continue;
|
||||||
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("-DNDEBUG");
|
||||||
try cflags.append("-D_LIBCPP_BUILDING_LIBRARY");
|
try cflags.append("-D_LIBCPP_BUILDING_LIBRARY");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user