mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Make it possible to use only 1 thread for building
This commit is contained in:
parent
e4f94dc99f
commit
6cf61001b8
@ -69,7 +69,7 @@ echo.
|
||||
|
||||
title Build - %SourceName%-%RsBuildConfig% [make]
|
||||
|
||||
%EnvMSYS2Cmd% "make -j %NUMBER_OF_PROCESSORS%"
|
||||
%EnvMSYS2Cmd% "make -j %CoreCount%"
|
||||
|
||||
:: Webui
|
||||
if "%ParamWebui%"=="1" (
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user