sys-libs/compiler-rt-sanitizers: Use pre-installed lit
authorMichał Górny <mgorny@gentoo.org>
Sat, 1 Oct 2016 17:26:03 +0000 (19:26 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sat, 1 Oct 2016 19:05:55 +0000 (21:05 +0200)
sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild

index e9ca98269103761087c6bfff866f135c0d777840..9b280fd0ba34d6de51589f10f6bbbc8a8860ad16 100644 (file)
@@ -25,7 +25,8 @@ RDEPEND="${PYTHON_DEPS}
        !<sys-devel/llvm-${PV}"
 DEPEND="${RDEPEND}
        ~sys-devel/llvm-${PV}
-       test? ( ~sys-devel/clang-${PV}
+       test? ( dev-python/lit[${PYTHON_USEDEP}]
+               ~sys-devel/clang-${PV}
                ~sys-libs/compiler-rt-${PV} )
        ${PYTHON_DEPS}"
 
@@ -69,6 +70,7 @@ src_configure() {
        if use test; then
                mycmakeargs+=(
                        -DLLVM_MAIN_SRC_DIR="${WORKDIR}/llvm"
+                       -DLIT_COMMAND="${EPREFIX}/usr/bin/lit"
 
                        # they are created during src_test()
                        -DCOMPILER_RT_TEST_COMPILER="${BUILD_DIR}/bin/clang"