From 3fa47c76138a86a5d29d30230c0afc1946d46d5b Mon Sep 17 00:00:00 2001 From: Sam James Date: Fri, 16 Sep 2022 01:33:02 +0100 Subject: [PATCH] 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 Thanks-to: Georgy Yakovlev Signed-off-by: Sam James --- 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 ad06c1d9333f9..64627a72aa3e3 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