diff options
Diffstat (limited to 'dev-lang/spidermonkey/spidermonkey-102.4.0.ebuild')
-rw-r--r-- | dev-lang/spidermonkey/spidermonkey-102.4.0.ebuild | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/dev-lang/spidermonkey/spidermonkey-102.4.0.ebuild b/dev-lang/spidermonkey/spidermonkey-102.4.0.ebuild index 40a248c7290f..d78ef4c2e97f 100644 --- a/dev-lang/spidermonkey/spidermonkey-102.4.0.ebuild +++ b/dev-lang/spidermonkey/spidermonkey-102.4.0.ebuild @@ -113,8 +113,8 @@ llvm_check_deps() { fi if use lto ; then - if ! has_version -b "=sys-devel/lld-${LLVM_SLOT}*" ; then - einfo "=sys-devel/lld-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + if ! has_version -b "sys-devel/lld:${LLVM_SLOT}" ; then + einfo "sys-devel/lld:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 return 1 fi fi @@ -228,10 +228,12 @@ src_configure() { einfo "Current RUSTFLAGS: ${RUSTFLAGS}" local have_switched_compiler= - if use clang && ! tc-is-clang ; then + if use clang; then # Force clang einfo "Enforcing the use of clang due to USE=clang ..." - have_switched_compiler=yes + if tc-is-gcc; then + have_switched_compiler=yes + fi AR=llvm-ar AS=llvm-as CC=${CHOST}-clang |