speed up builds

main
Dominik Madarász 2023-10-24 15:22:15 +02:00
parent 421529c130
commit 67b610d398
1 changed files with 25 additions and 20 deletions

View File

@ -502,8 +502,12 @@ set run=no
set vs=00
rem detect setup
if "!cc!"=="" (
echo Detecting VS 2022/2019/2017/2015/2013 x64 ...
set cc=cl
where cl /q
if %ERRORLEVEL%==0 (
rem Do nothing.
) else (
echo Detecting VS 2022/2019/2017/2015/2013 x64 ...
if exist "%VS170COMNTOOLS%/../../VC/Auxiliary/Build/vcvarsx86_amd64.bat" (
@call "%VS170COMNTOOLS%/../../VC/Auxiliary/Build/vcvarsx86_amd64.bat" > nul && set "vs=22"
) else if exist "%VS160COMNTOOLS%/../../VC/Auxiliary/Build/vcvarsx86_amd64.bat" (
@ -526,6 +530,7 @@ if "!cc!"=="" (
where /q gcc.exe || ( echo Detecting TCC ... && set "cc=tcc" )
)
)
)
rem solution. @todo: lin/osx
if "!proj!"=="yes" if not "%vs%"=="00" pushd tools && premake5 vs20%vs% & popd