Skip to content

Commit 5aad5b7

Browse files
committed
Update vc_env_helper.bat
1 parent 8346f37 commit 5aad5b7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packaging/vc_env_helper.bat

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
@echo on
22

3-
for /f "usebackq tokens=*" %%i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -property installationPath`) do (
3+
set VC_VERSION_LOWER=17
4+
set VC_VERSION_UPPER=18
5+
6+
for /f "usebackq tokens=*" %%i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -legacy -products * -version [%VC_VERSION_LOWER%^,%VC_VERSION_UPPER%^) -property installationPath`) do (
47
if exist "%%i" if exist "%%i\VC\Auxiliary\Build\vcvarsall.bat" (
58
set "BAZEL_VC=%%i\VC"
69
set "VS15INSTALLDIR=%%i"

0 commit comments

Comments
 (0)