mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-10 21:04:32 +00:00
Allow user to set number of parallel jobs
This commit is contained in:
parent
c9bb2f5718
commit
3b380e24b2
1 changed files with 3 additions and 1 deletions
|
@ -11,7 +11,9 @@ if [ -z $BUILD_TYPE ]; then
|
||||||
BUILD_TYPE=Release
|
BUILD_TYPE=Release
|
||||||
fi
|
fi
|
||||||
# thanks to SO: http://stackoverflow.com/a/20283965/4118915
|
# 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)
|
pushd $(pwd)
|
||||||
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue