authorgravatar for kcbanner@gmail.comCasey Banner <kcbanner@gmail.com> 2023-01-15 13:10:19-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-01-15 18:29:02-05:00
log9856bea34e9d7eca6dfc2e883d46f24a53265dc6
tree817618df0237f0f18b24fbbb2529f9a5d2c87998
parentbb15e4057c9c8bb22084990de475ab10a44592c0

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


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

build.zig+4-1
...@@ -574,9 +574,12 @@ fn addCmakeCfgOptionsToExe(...@@ -574,9 +574,12 @@ fn addCmakeCfgOptionsToExe(
574 };574 };
575 exe.linkSystemLibrary("unwind");575 exe.linkSystemLibrary("unwind");
576 },576 },
577 .ios, .macos, .watchos, .tvos, .windows => {577 .ios, .macos, .watchos, .tvos => {
578 exe.linkLibCpp();578 exe.linkLibCpp();
579 },579 },
580 .windows => {
581 if (exe.target.getAbi() != .msvc) exe.linkLibCpp();
582 },
580 .freebsd => {583 .freebsd => {
581 if (static) {584 if (static) {
582 try addCxxKnownPath(b, cfg, exe, b.fmt("libc++.{s}", .{lib_suffix}), null, need_cpp_includes);585 try addCxxKnownPath(b, cfg, exe, b.fmt("libc++.{s}", .{lib_suffix}), null, need_cpp_includes);