CLI: link_libcpp implies link_libc

Improves a warning message for some cases of using `zig run -lc++`.
This commit is contained in:
Andrew Kelley
2022-02-02 14:54:14 -07:00
parent 7694361832
commit 557a097523

View File

@@ -2023,6 +2023,10 @@ fn buildOutputType(
i += 1;
}
}
// libc++ depends on libc
if (link_libcpp) {
link_libc = true;
}
if (use_lld) |opt| {
if (opt and cross_target.isDarwin()) {