[X2Go-Commits] [buildscripts] 03/03: nsis-builder.bat: Use # of CPU threads as jobs for make.
git-admin at x2go.org
git-admin at x2go.org
Fri May 8 23:21:08 CEST 2015
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository buildscripts.
commit 61bd803063c861c883922a4cf8b6c33cbc5cce15
Author: Mike DePaulo <mikedep333 at gmail.com>
Date: Fri May 8 17:15:47 2015 -0400
nsis-builder.bat: Use # of CPU threads as jobs for make.
Unless overriden by the env var: JOBS
---
bin/nsis-builder.bat | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/bin/nsis-builder.bat b/bin/nsis-builder.bat
index d4d2817..acf1b68 100755
--- a/bin/nsis-builder.bat
+++ b/bin/nsis-builder.bat
@@ -1,4 +1,9 @@
D:
+
+if not defined JOBS (
+set JOBS=%NUMBER_OF_PROCESSORS%
+)
+
if "%1"=="mingw32-4.4" (
cd D:\Build\GIT\nightly\mingw32-4.4\qt-4.8\x2goclient\
rem this includes setting PATH=%PATH%;D:\MinGW\libexec\gcc\mingw32\4.4.0\
@@ -21,7 +26,7 @@ rem use msysgit's sed
sed -i 's/^^CONFIG += console/#CONFIG += console/' x2goclient.pro
%COMSPEC% /c config_win.bat || exit /b %errorlevel%
cd client_build
-mingw32-make || exit /b %errorlevel%
+mingw32-make -j%NUMBER_OF_PROCESSORS% || exit /b %errorlevel%
dir release\x2goclient.exe
copy release\x2goclient.exe ..\nsis\x2goclient\
mingw32-make clean
@@ -32,7 +37,7 @@ rem use msysgit's sed
sed -i 's/^^#CONFIG += console/CONFIG += console/' x2goclient.pro
%COMSPEC% /c config_win.bat || exit /b %errorlevel%
cd client_build
-mingw32-make || exit /b %errorlevel%
+mingw32-make -j%NUMBER_OF_PROCESSORS% || exit /b %errorlevel%
dir release\x2goclient.exe
copy release\x2goclient.exe ..\nsis\x2goclient\x2goclient.debug.exe
mingw32-make clean
--
Alioth's /srv/git/code.x2go.org/buildscripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/buildscripts.git
More information about the x2go-commits
mailing list