diff options
Diffstat (limited to 'tools/autobuild/build.sh')
-rw-r--r-- | tools/autobuild/build.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/autobuild/build.sh b/tools/autobuild/build.sh index e7004fd8a4..570b6bb72d 100644 --- a/tools/autobuild/build.sh +++ b/tools/autobuild/build.sh @@ -9,9 +9,12 @@ source "$LOCAL_DIRNAME/detect_qmake.sh" # Prints number of cores to stdout GetCPUCores() { case "$OSTYPE" in + # it's GitBash under Windows + msys) echo $NUMBER_OF_PROCESSORS + ;; linux-gnu) grep -c ^processor /proc/cpuinfo 2>/dev/null ;; - darwin*) sysctl -n hw.ncpu + darwin*) sysctl -n hw.ncpu ;; *) echo "Unsupported platform in $0" exit 1 |