authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-09-01 15:34:39-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-09-01 15:34:39-07:00
loga338eaccc8c3d20a476cb763afebeb7bb1b1a94a
tree678a4d1b137c5dfcfc0beb4b073ba6455ef8026b
parent173db6eea6f7fd46c21e8e156c8437f9e2e7a710

stage2: libcxx: logic for skipping OS-specific files


1 files changed, 6 insertions(+), 4 deletions(-)

src/libcxx.zig+6-4
...@@ -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 }
123123
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;
128130
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");