summaryrefslogtreecommitdiff
path: root/profiles/features
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-09-16 05:14:17 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-09-16 05:14:17 +0100
commit121b314457e147271cd95353cf8886d35b329845 (patch)
treed7f2f3186727afdecbfff3bac5e3b88c84d46625 /profiles/features
parente87ef1b6ce856ae8859bdfce8028fb992f3e3763 (diff)
gentoo auto-resync : 16:09:2022 - 05:14:17
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