Merge pull request #106

3b380e2 Allow user to set number of parallel jobs (moneromooo.monero)
This commit is contained in:
Riccardo Spagni 2016-11-08 23:01:25 +02:00
commit 032e721532
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -11,7 +11,9 @@ if [ -z $BUILD_TYPE ]; then
BUILD_TYPE=Release
fi
# thanks to SO: http://stackoverflow.com/a/20283965/4118915
CPU_CORE_COUNT=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || sysctl -n hw.ncpu)
if test -z "$CPU_CORE_COUNT"; then
CPU_CORE_COUNT=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || sysctl -n hw.ncpu)
fi
pushd $(pwd)
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"