mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-09 04:51:27 +02:00
profile: use coreutils nproc to count cpus
This commit is contained in:
parent
daca646457
commit
85e400da73
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#if [[ $CATEGORY/$PN == sys-auth/polkit ]] ; then FEATURES=${FEATURES/multilib-strict/} ; fi
|
||||
local CORES="$(grep -c ^proc /proc/cpuinfo)"
|
||||
#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}"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue