Make it possible to use only 1 thread for building

This commit is contained in:
hunbernd 2020-05-24 18:24:58 +02:00
parent e4f94dc99f
commit 6cf61001b8
2 changed files with 6 additions and 2 deletions

View File

@ -69,7 +69,7 @@ echo.
title Build - %SourceName%-%RsBuildConfig% [make]
%EnvMSYS2Cmd% "make -j %NUMBER_OF_PROCESSORS%"
%EnvMSYS2Cmd% "make -j %CoreCount%"
:: Webui
if "%ParamWebui%"=="1" (

View File

@ -7,6 +7,7 @@ set ParamAutologin=0
set ParamPlugins=0
set ParamTor=0
set ParamWebui=0
set CoreCount=%NUMBER_OF_PROCESSORS%
set RS_QMAKE_CONFIG=
:parameter_loop
@ -28,6 +29,8 @@ if "%~1" NEQ "" (
set ParamTor=1
) else if "%%~a"=="webui" (
set ParamWebui=1
) else if "%%~a"=="singlethread" (
set CoreCount=1
) else if "%%~a"=="CONFIG+" (
set RS_QMAKE_CONFIG=%RS_QMAKE_CONFIG% %1
) else (
@ -86,7 +89,7 @@ exit /B 0
:usage
echo.
echo Usage: 32^|64 release^|debug [version autologin plugins webui]
echo Usage: 32^|64 release^|debug [version autologin plugins webui singlethread]
echo.
echo Mandatory parameter
echo 32^|64 32-bit or 64-bit Version
@ -96,6 +99,7 @@ echo Optional parameter (need clean when changed)
echo autologin Build with autologin
echo plugins Build plugins
echo webui Enable JsonAPI and pack webui files
echo singlethread Use only 1 thread for building
echo.
echo Parameter for pack
echo tor Pack tor version