From 61e00e67968220762a4718a111ca22eaa7431af8 Mon Sep 17 00:00:00 2001 From: yuyi Date: Wed, 6 May 2020 18:05:52 +0800 Subject: [PATCH] make.bat: add default msvc2015 config when there is no vswhere.exe --- make.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/make.bat b/make.bat index 9171e50a5c..60d9188f4a 100644 --- a/make.bat +++ b/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%