diff options
| author | kcbanner <kcbanner@gmail.com> | 2023-01-15 13:10:19 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-01-15 18:29:02 -0500 |
| commit | 9856bea34e9d7eca6dfc2e883d46f24a53265dc6 (patch) | |
| tree | 817618df0237f0f18b24fbbb2529f9a5d2c87998 /build.zig | |
| parent | bb15e4057c9c8bb22084990de475ab10a44592c0 (diff) | |
| download | zig-9856bea34e9d7eca6dfc2e883d46f24a53265dc6.tar.gz zig-9856bea34e9d7eca6dfc2e883d46f24a53265dc6.zip | |
build: avoid zig's libc++ on *-windows-msvc
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |
