sys-libs/libcxx: Control lit job count
authorMichał Górny <mgorny@gentoo.org>
Thu, 8 Mar 2018 22:03:56 +0000 (23:03 +0100)
committerMichał Górny <mgorny@gentoo.org>
Thu, 8 Mar 2018 22:18:57 +0000 (23:18 +0100)
Closes: https://bugs.gentoo.org/649554

sys-libs/libcxx/libcxx-6.0.9999.ebuild
sys-libs/libcxx/libcxx-9999.ebuild

index 55b19b88f38d9345df2fd1183e2fc70c631bd3be..cf76bba5fdfdc5b24e55f87888a4455da4554864 100644 (file)
@@ -15,7 +15,8 @@ PYTHON_COMPAT=( python2_7 )
 
 [[ ${PV} == *9999 ]] && SCM="git-r3" || SCM=""
 
-inherit ${SCM} cmake-multilib llvm python-any-r1 toolchain-funcs
+inherit ${SCM} cmake-multilib llvm multiprocessing python-any-r1 \
+       toolchain-funcs
 
 DESCRIPTION="New implementation of the C++ standard library, targeting C++11"
 HOMEPAGE="https://libcxx.llvm.org/"
@@ -138,7 +139,7 @@ multilib_src_configure() {
        if use test; then
                mycmakeargs+=(
                        -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit"
-                       -DLLVM_LIT_ARGS="-vv"
+                       -DLLVM_LIT_ARGS="-vv;-j;${LIT_JOBS:-$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")}"
                )
        fi
        cmake-utils_src_configure
index 9ad293ef7869841715bc34fece6804e58fc6fffb..214c61d31f67dd0897e74cd663027109fafffbf4 100644 (file)
@@ -14,7 +14,8 @@ PYTHON_COMPAT=( python2_7 )
 
 [[ ${PV} == 9999 ]] && SCM="git-r3" || SCM=""
 
-inherit ${SCM} cmake-multilib llvm python-any-r1 toolchain-funcs
+inherit ${SCM} cmake-multilib llvm multiprocessing python-any-r1 \
+       toolchain-funcs
 
 DESCRIPTION="New implementation of the C++ standard library, targeting C++11"
 HOMEPAGE="https://libcxx.llvm.org/"
@@ -137,7 +138,7 @@ multilib_src_configure() {
        if use test; then
                mycmakeargs+=(
                        -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit"
-                       -DLLVM_LIT_ARGS="-vv"
+                       -DLLVM_LIT_ARGS="-vv;-j;${LIT_JOBS:-$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")}"
                )
        fi
        cmake-utils_src_configure