make.bat: add default msvc2015 config when there is no vswhere.exe
parent
51f3f31a4e
commit
61e00e6796
4
make.bat
4
make.bat
|
@ -61,6 +61,8 @@ for /f "usebackq tokens=*" %%i in (`"%VsWhereDir%\Microsoft Visual Studio\Instal
|
|||
|
||||
if exist "%InstallDir%\Common7\Tools\vsdevcmd.bat" (
|
||||
call "%InstallDir%\Common7\Tools\vsdevcmd.bat" -arch=%HostArch% -host_arch=%HostArch% -no_logo
|
||||
) else if exist "%VsWhereDir%\Microsoft Visual Studio 14.0\Common7\Tools\vsdevcmd.bat" (
|
||||
call "%VsWhereDir%\Microsoft Visual Studio 14.0\Common7\Tools\vsdevcmd.bat" -arch=%HostArch% -host_arch=%HostArch% -no_logo
|
||||
) else (
|
||||
goto :no_compiler
|
||||
)
|
||||
|
@ -80,7 +82,6 @@ if %ERRORLEVEL% NEQ 0 (
|
|||
echo V failed to build itself with error %ERRORLEVEL%
|
||||
rd /s /q vc
|
||||
del v_old.exe
|
||||
del v2.pdb
|
||||
del vc140.pdb
|
||||
del %ObjFile%
|
||||
goto :compile_error
|
||||
|
@ -88,7 +89,6 @@ if %ERRORLEVEL% NEQ 0 (
|
|||
|
||||
rd /s /q vc
|
||||
del v_old.exe
|
||||
del v2.pdb
|
||||
del vc140.pdb
|
||||
del %ObjFile%
|
||||
|
||||
|
|
Loading…
Reference in New Issue