diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-09-01 15:34:39 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-09-01 15:34:39 -0700 |
| commit | a338eaccc8c3d20a476cb763afebeb7bb1b1a94a (patch) | |
| tree | 678a4d1b137c5dfcfc0beb4b073ba6455ef8026b /src/libcxx.zig | |
| parent | 173db6eea6f7fd46c21e8e156c8437f9e2e7a710 (diff) | |
| download | zig-a338eaccc8c3d20a476cb763afebeb7bb1b1a94a.tar.gz zig-a338eaccc8c3d20a476cb763afebeb7bb1b1a94a.zip | |
stage2: libcxx: logic for skipping OS-specific files
Diffstat (limited to 'src/libcxx.zig')
| -rw-r--r-- | src/libcxx.zig | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/libcxx.zig b/src/libcxx.zig index 2c0e381e0f..bd7da15fc1 100644 --- a/src/libcxx.zig +++ b/src/libcxx.zig @@ -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"); |
