profiles/features/clang: add LLVM_USE_LIBCXX, CXXSTDLIB

Needed to build some Rust crates like sys-apps/uutils.

I'd heard some users mention needing to set this but hadn't
poked particularly far (was in the context of trying to do
Firefox + libc++ on non-LLVM profiles IIRC).

Bug: https://bugs.gentoo.org/732632
Bug: https://bugs.gentoo.org/870280
Thanks-to: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Thanks-to: Georgy Yakovlev <gyakovlev@gentoo.org>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2022-09-16 01:35:04 +01:00
parent b6bf9a9169
commit 3fa47c7613
+3
View File
@@ -40,6 +40,9 @@ OBJDUMP="llvm-objdump"
READELF="llvm-readelf"
ADDR2LINE="llvm-addr2line"
# Rust needs this to build some crates (like uutils)
LLVM_USE_LIBCXX=1
CXXSTDLIB="c++"
# bootstrap USE for stage1