summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2023-01-28 14:21:00 -0500
committerMike Gilbert <floppym@gentoo.org>2023-05-18 22:38:03 -0400
commit00f0517beddf7efb61f9f18f36f22dd76fc4a7aa (patch)
tree1a39a61ba578a8cb155e9e4855afe6c95b040ece /eclass
parentdev-util/mingw64-toolchain: use -j1 for make install (diff)
downloadgentoo-00f0517beddf7efb61f9f18f36f22dd76fc4a7aa.tar.gz
gentoo-00f0517beddf7efb61f9f18f36f22dd76fc4a7aa.tar.bz2
gentoo-00f0517beddf7efb61f9f18f36f22dd76fc4a7aa.zip
waf-utils.eclass: enable parallel install
This gives a nice speedup to net-fs/samba, which (re)links several hundred files in its install phase. Bug: https://bugs.gentoo.org/715542 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/waf-utils.eclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/waf-utils.eclass b/eclass/waf-utils.eclass
index e2a23e66b9cc..f8d4b0aa94b4 100644
--- a/eclass/waf-utils.eclass
+++ b/eclass/waf-utils.eclass
@@ -138,8 +138,9 @@ waf-utils_src_install() {
export PYTHONHASHSEED=1
- echo "\"${WAF_BINARY}\" --jobs=1 --destdir=\"${D}\" ${*} install"
- "${WAF_BINARY}" --jobs=1 --destdir="${D}" "${@}" install || die "Make install failed"
+ local jobs="--jobs=$(makeopts_jobs)"
+ echo "\"${WAF_BINARY}\" ${jobs} --destdir=\"${D}\" ${*} install"
+ "${WAF_BINARY}" ${jobs} --destdir="${D}" "${@}" install || die "Make install failed"
# Manual document installation
einstalldocs