mirror of
https://github.com/ziglang/zig.git
synced 2025-01-07 10:45:17 +00:00
build: avoid zig's libc++ on *-windows-msvc
This commit is contained in:
parent
bb15e4057c
commit
9856bea34e
@ -574,9 +574,12 @@ fn addCmakeCfgOptionsToExe(
|
||||
};
|
||||
exe.linkSystemLibrary("unwind");
|
||||
},
|
||||
.ios, .macos, .watchos, .tvos, .windows => {
|
||||
.ios, .macos, .watchos, .tvos => {
|
||||
exe.linkLibCpp();
|
||||
},
|
||||
.windows => {
|
||||
if (exe.target.getAbi() != .msvc) exe.linkLibCpp();
|
||||
},
|
||||
.freebsd => {
|
||||
if (static) {
|
||||
try addCxxKnownPath(b, cfg, exe, b.fmt("libc++.{s}", .{lib_suffix}), null, need_cpp_includes);
|
||||
|
Loading…
Reference in New Issue
Block a user