Skip to content

Commit

Permalink
dev-lang/rust: Remove IUSE=llvm
Browse files Browse the repository at this point in the history
LLVM is not bundled, so it is not possible right now to build without
 system-llvm. Also remove the archiver/linker switch, since llvm-ar and
 llvm-link are not necessary (cf. bug #617776 comment #6).

See-Also: https://bugs.gentoo.org/show_bug.cgi?id=617776#c6
  • Loading branch information
devurandom committed Jun 22, 2017
1 parent 98e1e4a commit 550bc08
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions dev-lang/rust/rust-1.18.0.ebuild
Expand Up @@ -43,8 +43,7 @@ SRC_URI="https://static.rust-lang.org/dist/${SRC} -> rustc-${PV}-src.tar.gz

LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"

IUSE="clang debug doc jemalloc llvm"
REQUIRED_USE="clang? ( llvm )"
IUSE="clang debug doc jemalloc"

RDEPEND=""
DEPEND="${RDEPEND}
Expand Down Expand Up @@ -96,14 +95,6 @@ src_configure() {

local archiver="$(tc-getAR)"
local linker="$(tc-getCC)"
if use llvm ; then
# Gentoo currently lacks CHOST prefixed binaries for sys-devel/llvm
# https://bugs.gentoo.org/show_bug.cgi?id=617776
#archiver="${CHOST}"-llvm-ar
#linker="${CHOST}"-llvm-link
archiver=llvm-ar
linker=llvm-link
fi

local llvm_config="$(get_llvm_prefix)/bin/${CBUILD}-llvm-config"
local c_compiler="$(tc-getBUILD_CC)"
Expand Down

0 comments on commit 550bc08

Please sign in to comment.