Fix USEALLCORES configuration (#733)

This commit is contained in:
Stefan Mavrodiev 2017-08-23 19:27:43 +03:00 committed by Mikhail
parent 13a7b53d55
commit 83122cad10

View File

@ -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"