summaryrefslogtreecommitdiff
path: root/profiles/features
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/features')
-rw-r--r--profiles/features/clang/make.defaults6
-rw-r--r--profiles/features/clang/package.use.mask4
2 files changed, 10 insertions, 0 deletions
diff --git a/profiles/features/clang/make.defaults b/profiles/features/clang/make.defaults
index ad06c1d9333f..77b32d47a3c2 100644
--- a/profiles/features/clang/make.defaults
+++ b/profiles/features/clang/make.defaults
@@ -40,6 +40,12 @@ OBJDUMP="llvm-objdump"
READELF="llvm-readelf"
ADDR2LINE="llvm-addr2line"
+# Rust needs this to build some crates (like uutils)
+# https://github.com/rust-lang/rust/blob/master/compiler/rustc_llvm/build.rs
+LLVM_USE_LIBCXX=1
+# https://github.com/rust-lang/cc-rs#c-support
+# https://github.com/rust-lang/cc-rs/blob/main/src/lib.rs
+CXXSTDLIB="c++"
# bootstrap USE for stage1
diff --git a/profiles/features/clang/package.use.mask b/profiles/features/clang/package.use.mask
index 2aa65931d7b2..0975580eab0d 100644
--- a/profiles/features/clang/package.use.mask
+++ b/profiles/features/clang/package.use.mask
@@ -1,5 +1,9 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
+# Sam James <sam@gentoo.org> (2022-09-15)
+# Works on pure LLVM systems: bug #870211.
+dev-lang/rust -llvm-libunwind
+
# libquadmath is gcc-specific
dev-lang/perl quadmath