mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-09-28 14:49:41 -04:00
Clang support
This commit is contained in:
parent
5a7b9e416c
commit
cd751f12d4
10 changed files with 35 additions and 20 deletions
|
@ -7,6 +7,7 @@ set ParamAutologin=0
|
|||
set ParamPlugins=0
|
||||
set ParamTor=0
|
||||
set ParamWebui=0
|
||||
set ParamClang=0
|
||||
set CoreCount=%NUMBER_OF_PROCESSORS%
|
||||
set RS_QMAKE_CONFIG=
|
||||
|
||||
|
@ -31,6 +32,8 @@ if "%~1" NEQ "" (
|
|||
set ParamWebui=1
|
||||
) else if "%%~a"=="singlethread" (
|
||||
set CoreCount=1
|
||||
) else if "%%~a"=="clang" (
|
||||
set ParamClang=1
|
||||
) else if "%%~a"=="CONFIG+" (
|
||||
set RS_QMAKE_CONFIG=%RS_QMAKE_CONFIG% %1
|
||||
) else (
|
||||
|
@ -61,6 +64,10 @@ if "%Param64%"=="1" (
|
|||
set RsMSYS2Architecture=x86_64
|
||||
)
|
||||
|
||||
if "%ParamClang%"=="1" (
|
||||
set RsArchitecture=%RsArchitecture%-Clang
|
||||
)
|
||||
|
||||
if "%RsBit%"=="" goto :usage
|
||||
|
||||
if "%ParamRelease%"=="1" (
|
||||
|
@ -89,7 +96,7 @@ exit /B 0
|
|||
|
||||
:usage
|
||||
echo.
|
||||
echo Usage: 32^|64 release^|debug [version autologin plugins webui singlethread]
|
||||
echo Usage: 32^|64 release^|debug [autologin plugins webui singlethread clang]
|
||||
echo.
|
||||
echo Mandatory parameter
|
||||
echo 32^|64 32-bit or 64-bit Version
|
||||
|
@ -100,6 +107,7 @@ 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 clang Use clang compiler instead of GCC
|
||||
echo.
|
||||
echo Parameter for pack
|
||||
echo tor Pack tor version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue