aboutsummaryrefslogtreecommitdiff
path: root/tools/buildsteps
diff options
context:
space:
mode:
authorRechi <Rechi@users.noreply.github.com>2017-04-25 22:05:32 +0200
committerRechi <Rechi@users.noreply.github.com>2017-04-25 22:05:32 +0200
commitdc04338f6d4e10559adc075d5a2c7d335e0a8a7e (patch)
tree1ffa753d12f5e5f0041f5c8f793d7373e985f39e /tools/buildsteps
parent8056f3533be5ad73aa6b53d2edf4bd6f374db2b1 (diff)
[buildsteps][windows] correct evaluation of make jobs
Diffstat (limited to 'tools/buildsteps')
-rw-r--r--tools/buildsteps/win32/buildhelpers.sh6
-rw-r--r--tools/buildsteps/win32/make-mingwlibs.sh4
2 files changed, 3 insertions, 7 deletions
diff --git a/tools/buildsteps/win32/buildhelpers.sh b/tools/buildsteps/win32/buildhelpers.sh
index 34663b8275..b39c86a92f 100644
--- a/tools/buildsteps/win32/buildhelpers.sh
+++ b/tools/buildsteps/win32/buildhelpers.sh
@@ -5,9 +5,9 @@ BGPROCESSFILE="$2"
tools="$3"
cpuCount=1
-if [ $NUMBER_OF_PROCESSORS > 1 ]; then
- if [ $NUMBER_OF_PROCESSORS > 4 ]; then
- cpuCount=6
+if [[ $NUMBER_OF_PROCESSORS > 1 ]]; then
+ if [[ $NUMBER_OF_PROCESSORS > 4 ]]; then
+ cpuCount=$NUMBER_OF_PROCESSORS
else
cpuCount=`expr $NUMBER_OF_PROCESSORS + $NUMBER_OF_PROCESSORS / 2`
fi
diff --git a/tools/buildsteps/win32/make-mingwlibs.sh b/tools/buildsteps/win32/make-mingwlibs.sh
index e657e964b5..ee241c71d7 100644
--- a/tools/buildsteps/win32/make-mingwlibs.sh
+++ b/tools/buildsteps/win32/make-mingwlibs.sh
@@ -141,10 +141,6 @@ else
MAKECLEAN="noclean"
fi
-if [ $NUMBER_OF_PROCESSORS > 1 ]; then
- MAKEFLAGS=-j`expr $NUMBER_OF_PROCESSORS + $NUMBER_OF_PROCESSORS / 2`
-fi
-
run_builds
echo -e "\033]0;compiling done...\007"