mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-01-19 14:44:52 +01:00
8 lines
522 B
Text
8 lines
522 B
Text
if [[ $CATEGORY/$PN == sys-boot/os-prober ]] ; then FEATURES=${FEATURES/multilib-strict/} ; fi
|
|
#local CORES="$(grep -c ^proc /proc/cpuinfo)"
|
|
local CORES="$(nproc)"
|
|
if [[ "${CORES}" -eq "0" ]] ; then CORES="1" ; fi
|
|
echo ${MAKEOPTS} | grep -q -e -j || export MAKEOPTS="-j${CORES} -l${CORES}"
|
|
|
|
#by the time this is parsed, EMERGE_DEFAULT_OPTS are already applied, this file is too late
|
|
#echo ${EMERGE_DEFAULT_OPTS} | grep -q jobs || export EMERGE_DEFAULT_OPTS="${EMERGE_DEFAULT_OPTS} --jobs=${CORES} --load-average=${CORES}"
|