From 121b314457e147271cd95353cf8886d35b329845 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 16 Sep 2022 05:14:17 +0100 Subject: gentoo auto-resync : 16:09:2022 - 05:14:17 --- profiles/features/clang/make.defaults | 6 ++++++ profiles/features/clang/package.use.mask | 4 ++++ 2 files changed, 10 insertions(+) (limited to 'profiles/features') 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 (2022-09-15) +# Works on pure LLVM systems: bug #870211. +dev-lang/rust -llvm-libunwind + # libquadmath is gcc-specific dev-lang/perl quadmath -- cgit v1.2.3