Remove checked-in vswhere.exe binary

This commit is contained in:
Cameron Gutman
2026-08-14 23:23:57 -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%
+15
View File
@@ -0,0 +1,15 @@
@echo off
rem Search the PATH first, then well-known paths
where /q vswhere.exe
if %ERRORLEVEL% EQU 0 (
set VSWHERE=vswhere.exe
) else if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" (
set VSWHERE="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
) else if exist "%ProgramFiles%\Microsoft Visual Studio\Installer\vswhere.exe" (
set VSWHERE="%ProgramFiles%\Microsoft Visual Studio\Installer\vswhere.exe"
) else (
exit /b 1
)
exit /b 0
+2 -1
View File
@@ -65,7 +65,8 @@ mkdir %BUILD_FOLDER%
mkdir %INSTALLER_FOLDER%
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" x86
)
Binary file not shown.