eclass/ninja-utils: Sync with Gentoo

It's from Gentoo commit 7bdd7fed54b73d349c5bd4f9b81e3e3d4544bf56.
This commit is contained in:
Flatcar Buildbot 2023-10-16 07:13:31 +00:00
parent 66396f0e8d
commit c633144800

View File

@ -72,7 +72,7 @@ esac
# Get the value of NINJAOPTS, inferring them from MAKEOPTS if unset.
get_NINJAOPTS() {
if [[ -z ${NINJAOPTS+set} ]]; then
NINJAOPTS="-j$(makeopts_jobs "${MAKEOPTS}" 999) -l$(makeopts_loadavg "${MAKEOPTS}" 0)"
NINJAOPTS="-j$(get_makeopts_jobs 999) -l$(get_makeopts_loadavg 0)"
fi
echo "${NINJAOPTS}"
}