sys-devel/clang: Control lit job count
authorMichał Górny <mgorny@gentoo.org>
Thu, 8 Mar 2018 22:00:46 +0000 (23:00 +0100)
committerMichał Górny <mgorny@gentoo.org>
Thu, 8 Mar 2018 22:18:54 +0000 (23:18 +0100)
Closes: https://bugs.gentoo.org/649554

sys-devel/clang/clang-6.0.9999.ebuild
sys-devel/clang/clang-9999.ebuild

index 2a2a844387a9de71e147f7f5a06b2f77185c68a4..245213c78d2ea00e744c7e0fe9fdd2e56ff5ad84 100644 (file)
@@ -9,7 +9,8 @@ CMAKE_MIN_VERSION=3.7.0-r1
 PYTHON_COMPAT=( python2_7 )
 
 inherit cmake-utils eapi7-ver flag-o-matic git-r3 llvm \
-       multilib-minimal pax-utils python-single-r1 toolchain-funcs
+       multilib-minimal multiprocessing pax-utils python-single-r1 \
+       toolchain-funcs
 
 DESCRIPTION="C language family frontend for LLVM"
 HOMEPAGE="https://llvm.org/"
@@ -136,7 +137,7 @@ multilib_src_configure() {
        )
        use test && mycmakeargs+=(
                -DLLVM_MAIN_SRC_DIR="${WORKDIR}/llvm"
-               -DLLVM_LIT_ARGS="-vv"
+               -DLLVM_LIT_ARGS="-vv;-j;${LIT_JOBS:-$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")}"
        )
 
        if multilib_is_native_abi; then
index b3392999ee8751d37f9a4635536313fc55dd653b..9513fa282b5b30ec41b0845b1b3c69bfbc2dc5a7 100644 (file)
@@ -9,7 +9,8 @@ CMAKE_MIN_VERSION=3.7.0-r1
 PYTHON_COMPAT=( python2_7 )
 
 inherit cmake-utils eapi7-ver flag-o-matic git-r3 llvm \
-       multilib-minimal pax-utils python-single-r1 toolchain-funcs
+       multilib-minimal multiprocessing pax-utils python-single-r1 \
+       toolchain-funcs
 
 DESCRIPTION="C language family frontend for LLVM"
 HOMEPAGE="https://llvm.org/"
@@ -137,7 +138,7 @@ multilib_src_configure() {
        )
        use test && mycmakeargs+=(
                -DLLVM_MAIN_SRC_DIR="${WORKDIR}/llvm"
-               -DLLVM_LIT_ARGS="-vv"
+               -DLLVM_LIT_ARGS="-vv;-j;${LIT_JOBS:-$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")}"
        )
 
        if multilib_is_native_abi; then