authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-02-02 14:54:14-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-02-02 14:54:14-07:00
log557a097523a8c30c25579db3c634c09c9979d3a2
tree97cb861d8fddbc59cc155306ac03b3033d4b606b
parent7694361832090198ed6d4e4fa930990a72813642

CLI: link_libcpp implies link_libc

Improves a warning message for some cases of using `zig run -lc++`.

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

src/main.zig+4
...@@ -2023,6 +2023,10 @@ fn buildOutputType(...@@ -2023,6 +2023,10 @@ fn buildOutputType(
2023 i += 1;2023 i += 1;
2024 }2024 }
2025 }2025 }
2026 // libc++ depends on libc
2027 if (link_libcpp) {
2028 link_libc = true;
2029 }
20262030
2027 if (use_lld) |opt| {2031 if (use_lld) |opt| {
2028 if (opt and cross_target.isDarwin()) {2032 if (opt and cross_target.isDarwin()) {