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