diff --git a/config/multithread b/config/multithread index 18b24f959d..6d052382a9 100644 --- a/config/multithread +++ b/config/multithread @@ -152,10 +152,10 @@ start_multithread_build() { # Bootstrap GNU parallel 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 + # determine number of available slots for the given THREADCOUNT - optimise logging for single threaded builds [ $(seq 1 32 | ${TOOLCHAIN}/bin/parallel --plain --no-notice --max-procs ${THREADCOUNT} echo {%} | sort -n | tail -1) -eq 1 ] && singlethread=yes || singlethread=no - # create a single log file by default if not using locks (single build process), or the builder is a masochist + # create a single log file by default for a single threaded build (or the builder is a masochist) if [ "${singlethread}" = "yes" -a "${ONELOG,,}" != "no" ] || [ "${ONELOG,,}" = "yes" ]; then buildopts+=" --ungroup" else