Skip to content

Commit

Permalink
[buildsteps][windows] correct evaluation of make jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rechi committed Apr 25, 2017
1 parent 8056f35 commit dc04338
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -363,10 +363,6 @@ lib/cpluff/stamp-h1
/tools/TexturePacker/Makefile
/tools/TexturePacker/*.dll

# /tools/buildsteps/win32
/tools/buildsteps/win32/1
/tools/buildsteps/win32/4

# /userdata/
/userdata/Database
/userdata/playlists
Expand Down
6 changes: 3 additions & 3 deletions tools/buildsteps/win32/buildhelpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions tools/buildsteps/win32/make-mingwlibs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit dc04338

Please sign in to comment.