mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
buildsystem: bootstrapping parallel must not use locks
This commit is contained in:
parent
7d84fbe6fa
commit
ff8c463b31
@ -150,7 +150,7 @@ start_multithread_build() {
|
|||||||
[ "${THREADCOUNT}" = "0" ] && THREADCOUNT=1
|
[ "${THREADCOUNT}" = "0" ] && THREADCOUNT=1
|
||||||
|
|
||||||
# Bootstrap GNU parallel
|
# 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
|
# 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
|
[ $(seq 1 32 | ${TOOLCHAIN}/bin/parallel --plain --no-notice --max-procs ${THREADCOUNT} echo {%} | sort -n | tail -1) -eq 1 ] && singlethread=yes || singlethread=no
|
||||||
|
Loading…
x
Reference in New Issue
Block a user