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 22:11:08-07:00
loga0cd4c0f327a484879cf5d538bdbfd3392759402
tree879bd104e2c6ebbb700867efc59e938614e7125c
parentd107ef86973692123892bcd5e47ce1b17982283a

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
......@@ -2011,6 +2011,10 @@ fn buildOutputType(
20112011 i += 1;
20122012 }
20132013 }
2014 // libc++ depends on libc
2015 if (link_libcpp) {
2016 link_libc = true;
2017 }
20142018
20152019 if (use_lld) |opt| {
20162020 if (opt and cross_target.isDarwin()) {