We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8346f37 commit 5aad5b7Copy full SHA for 5aad5b7
packaging/vc_env_helper.bat
@@ -1,6 +1,9 @@
1
@echo on
2
3
-for /f "usebackq tokens=*" %%i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -property installationPath`) do (
+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 (
7
if exist "%%i" if exist "%%i\VC\Auxiliary\Build\vcvarsall.bat" (
8
set "BAZEL_VC=%%i\VC"
9
set "VS15INSTALLDIR=%%i"
0 commit comments