speed up builds
parent
421529c130
commit
67b610d398
7
MAKE.bat
7
MAKE.bat
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue