diff options
Diffstat (limited to 'scripts/run-analyzer.sh')
-rwxr-xr-x | scripts/run-analyzer.sh | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/scripts/run-analyzer.sh b/scripts/run-analyzer.sh index a60bcc02e..d98fe2ab1 100755 --- a/scripts/run-analyzer.sh +++ b/scripts/run-analyzer.sh @@ -57,14 +57,7 @@ if [ -z "$RUN_CLANG_TIDY" ] || [ -z "$CLANG_TIDY" ]; then fi fi -NPROC=`which nproc` -SYSCTL=`which sysctl` -CPU_COUNT=2 -if [ ! -z "$NPROC" ]; then # Linux - CPU_COUNT=`$NPROC --all` -elif [ ! -z "$SYSCTL" ]; then # macOS - CPU_COUNT=`$SYSCTL -n hw.ncpu` -fi +CPU_COUNT=$("$(dirname "$0")"/cpu-count.sh) BUILD_OPTIONS="\ ${QBS_BUILD_PROFILE:+profile:${QBS_BUILD_PROFILE}} \ |