Fix USEALLCORES configuration (#733)
This commit is contained in:
parent
13a7b53d55
commit
83122cad10
16
lib/main.sh
16
lib/main.sh
@ -91,14 +91,6 @@ else
|
||||
CCACHE=""
|
||||
fi
|
||||
|
||||
# optimize build time with 100% CPU usage
|
||||
CPUS=$(grep -c 'processor' /proc/cpuinfo)
|
||||
if [[ $USEALLCORES != no ]]; then
|
||||
CTHREADS="-j$(($CPUS + $CPUS/2))"
|
||||
else
|
||||
CTHREADS="-j1"
|
||||
fi
|
||||
|
||||
# Check and install dependencies, directory structure and settings
|
||||
prepare_host
|
||||
|
||||
@ -240,6 +232,14 @@ fi
|
||||
|
||||
source $SRC/lib/configuration.sh
|
||||
|
||||
# optimize build time with 100% CPU usage
|
||||
CPUS=$(grep -c 'processor' /proc/cpuinfo)
|
||||
if [[ $USEALLCORES != no ]]; then
|
||||
CTHREADS="-j$(($CPUS + $CPUS/2))"
|
||||
else
|
||||
CTHREADS="-j1"
|
||||
fi
|
||||
|
||||
start=`date +%s`
|
||||
|
||||
[[ $CLEAN_LEVEL == *sources* ]] && cleaning "sources"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user