buildsystem: bootstrapping parallel must not use locks

This commit is contained in:
MilhouseVH 2019-07-07 00:11:44 +01:00
parent 7d84fbe6fa
commit ff8c463b31

View File

@ -150,7 +150,7 @@ start_multithread_build() {
[ "${THREADCOUNT}" = "0" ] && THREADCOUNT=1
# Bootstrap GNU parallel
$SCRIPTS/build parallel:host 2>&1 || die "Unable to bootstrap parallel package"
MTWITHLOCKS=no $SCRIPTS/build parallel:host 2>&1 || die "Unable to bootstrap parallel package"
# if number of detected slots is 1 then don't bother using inter-process locks as this is a sequential build
[ $(seq 1 32 | ${TOOLCHAIN}/bin/parallel --plain --no-notice --max-procs ${THREADCOUNT} echo {%} | sort -n | tail -1) -eq 1 ] && singlethread=yes || singlethread=no