commit a0cd4c0f327a484879cf5d538bdbfd3392759402 (tree)
parent d107ef86973692123892bcd5e47ce1b17982283a
Author: Andrew Kelley <andrew@ziglang.org>
Date: Wed, 2 Feb 2022 14:54:14 -0700
CLI: link_libcpp implies link_libc
Improves a warning message for some cases of using `zig run -lc++`.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/main.zig b/src/main.zig
@@ -2011,6 +2011,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()) {