Remove checked-in vswhere.exe binary

This commit is contained in:
Cameron Gutman
2026-08-14 23:18:48 -05:00
parent 6cae32bf53
commit da3312347d
4 changed files with 20 additions and 2 deletions
+3 -1
View File
@@ -134,7 +134,8 @@ if /I "%VC_ARCH%" NEQ "%PROCESSOR_ARCHITECTURE%" (
)
rem Find Visual Studio and run vcvarsall.bat
set VSWHERE="%SOURCE_ROOT%\scripts\vswhere.exe"
call "%SOURCE_ROOT%\scripts\find-vswhere.bat"
if !ERRORLEVEL! NEQ 0 goto Error
for /f "usebackq delims=" %%i in (`%VSWHERE% -latest -property installationPath`) do (
call "%%i\VC\Auxiliary\Build\vcvarsall.bat" %VC_ARCH%
)
@@ -142,6 +143,7 @@ if !ERRORLEVEL! NEQ 0 goto Error
rem Find VC redistributable DLLs
for /f "usebackq delims=" %%i in (`%VSWHERE% -latest -find VC\Redist\MSVC\*\%ARCH%\Microsoft.VC*.CRT`) do set VC_REDIST_DLL_PATH=%%i
if !ERRORLEVEL! NEQ 0 goto Error
echo Cleaning output directories
rmdir /s /q %DEPLOY_FOLDER%