commit:     3fa47c76138a86a5d29d30230c0afc1946d46d5b
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 16 00:33:02 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Sep 16 00:35:04 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3fa47c76

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 <AT> Apache.Org>
Thanks-to: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 profiles/features/clang/make.defaults | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/profiles/features/clang/make.defaults 
b/profiles/features/clang/make.defaults
index ad06c1d9333f..64627a72aa3e 100644
--- a/profiles/features/clang/make.defaults
+++ b/profiles/features/clang/make.defaults
@@ -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
 

Reply via email to