summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2016-10-01 13:35:18 +0200
committerMichał Górny <mgorny@gentoo.org>2016-10-01 15:05:57 +0200
commit2ab8e37dec3077908ffcc69f10578caae6936c31 (patch)
treef9f6adaae1dd1d0aa52263de0af2d90ecfcdf9c4
parentdev-util/bcc: Update deps for LLVM_TARGETS=BPF (diff)
downloadgentoo-2ab8e37dec3077908ffcc69f10578caae6936c31.tar.gz
gentoo-2ab8e37dec3077908ffcc69f10578caae6936c31.tar.bz2
gentoo-2ab8e37dec3077908ffcc69f10578caae6936c31.zip
sys-devel/llvm: Use installed lit for tests
-rw-r--r--sys-devel/llvm/llvm-9999.ebuild10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys-devel/llvm/llvm-9999.ebuild b/sys-devel/llvm/llvm-9999.ebuild
index 6af306ea7bc7..471783794b06 100644
--- a/sys-devel/llvm/llvm-9999.ebuild
+++ b/sys-devel/llvm/llvm-9999.ebuild
@@ -51,6 +51,7 @@ DEPEND="${RDEPEND}
libffi? ( virtual/pkgconfig )
ocaml? ( dev-ml/findlib
test? ( dev-ml/ounit ) )
+ test? ( $(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') )
!!<dev-python/configparser-3.3.0.2
${PYTHON_DEPS}"
@@ -58,6 +59,11 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}
|| ( ${ALL_LLVM_TARGETS[*]} )
multitarget? ( ${ALL_LLVM_TARGETS[*]} )"
+python_check_deps() {
+ ! use test \
+ || has_version "dev-python/lit[${PYTHON_USEDEP}]"
+}
+
pkg_pretend() {
# in megs
# !debug !multitarget -O2 400
@@ -168,6 +174,10 @@ multilib_src_configure() {
)
# fi
+ use test && mycmakeargs+=(
+ -DLIT_COMMAND="${EPREFIX}/usr/bin/lit"
+ )
+
if multilib_is_native_abi; then
mycmakeargs+=(
-DLLVM_BUILD_DOCS=$(usex doc)