build: avoid zig's libc++ on *-windows-msvc

This commit is contained in:
kcbanner 2023-01-15 13:10:19 -05:00 committed by Andrew Kelley
parent bb15e4057c
commit 9856bea34e

View File

@ -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);