projects
/
gentoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a53676
)
sys-libs/compiler-rt: Fix calling lit with llvm-6+ macros
author
Michał Górny
<mgorny@gentoo.org>
Tue, 3 Apr 2018 17:39:06 +0000
(19:39 +0200)
committer
Michał Górny
<mgorny@gentoo.org>
Tue, 3 Apr 2018 19:39:16 +0000
(21:39 +0200)
sys-libs/compiler-rt/compiler-rt-5.0.1.ebuild
patch
|
blob
|
history
diff --git
a/sys-libs/compiler-rt/compiler-rt-5.0.1.ebuild
b/sys-libs/compiler-rt/compiler-rt-5.0.1.ebuild
index b4861d13427bc41e3ecf6a7f8508c27449b0a6a7..76c9139801b1cf535ab0af9742431911ab730dea 100644
(file)
--- a/
sys-libs/compiler-rt/compiler-rt-5.0.1.ebuild
+++ b/
sys-libs/compiler-rt/compiler-rt-5.0.1.ebuild
@@
-85,9
+85,17
@@
src_configure() {
fi
if use test; then
- mycmakeargs+=(
- -DLIT_COMMAND="${EPREFIX}/usr/bin/lit"
+ if has_version '>=sys-devel/llvm-6'; then
+ mycmakeargs+=(
+ -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit"
+ )
+ else
+ mycmakeargs+=(
+ -DLIT_COMMAND="${EPREFIX}"/usr/bin/lit
+ )
+ fi
+ mycmakeargs+=(
-DCOMPILER_RT_TEST_COMPILER="${EPREFIX}/usr/lib/llvm/${CLANG_SLOT}/bin/clang"
-DCOMPILER_RT_TEST_CXX_COMPILER="${EPREFIX}/usr/lib/llvm/${CLANG_SLOT}/bin/clang++"
)