| ... | ... | @@ -568,14 +568,14 @@ fn addCmakeCfgOptionsToExe( |
| 568 | 568 | // back to -lc++ and cross our fingers. |
| 569 | 569 | addCxxKnownPath(b, cfg, exe, b.fmt("libstdc++.{s}", .{lib_suffix}), "", need_cpp_includes) catch |err| switch (err) { |
| 570 | 570 | error.RequiredLibraryNotFound => { |
| 571 | | exe.linkSystemLibrary("c++"); |
| 571 | exe.linkLibCpp(); |
| 572 | 572 | }, |
| 573 | 573 | else => |e| return e, |
| 574 | 574 | }; |
| 575 | 575 | exe.linkSystemLibrary("unwind"); |
| 576 | 576 | }, |
| 577 | | .ios, .macos, .watchos, .tvos => { |
| 578 | | exe.linkSystemLibrary("c++"); |
| 577 | .ios, .macos, .watchos, .tvos, .windows => { |
| 578 | exe.linkLibCpp(); |
| 579 | 579 | }, |
| 580 | 580 | .freebsd => { |
| 581 | 581 | if (static) { |