speed up cl builds

main
Dominik Madarász 2023-10-24 15:45:41 +02:00
parent 67b610d398
commit 1ff1a7af04
1 changed files with 1 additions and 3 deletions

View File

@ -504,9 +504,7 @@ rem detect setup
if "!cc!"=="" ( if "!cc!"=="" (
set cc=cl set cc=cl
where cl /q where cl /q
if %ERRORLEVEL%==0 ( if not %ERRORLEVEL%==0 (
rem Do nothing.
) else (
echo Detecting VS 2022/2019/2017/2015/2013 x64 ... echo Detecting VS 2022/2019/2017/2015/2013 x64 ...
if exist "%VS170COMNTOOLS%/../../VC/Auxiliary/Build/vcvarsx86_amd64.bat" ( if exist "%VS170COMNTOOLS%/../../VC/Auxiliary/Build/vcvarsx86_amd64.bat" (
@call "%VS170COMNTOOLS%/../../VC/Auxiliary/Build/vcvarsx86_amd64.bat" > nul && set "vs=22" @call "%VS170COMNTOOLS%/../../VC/Auxiliary/Build/vcvarsx86_amd64.bat" > nul && set "vs=22"