Skip to content

Commit c4c8541

Browse files
baruchiroBethGriggs
authored andcommittedDec 15, 2020
win,build,tools: support VS prerelease
PR-URL: #36033 Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 713d1eb commit c4c8541

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎tools/msvs/vswhere_usability_wrapper.cmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
@if not defined DEBUG_HELPER @ECHO OFF
77
setlocal
8-
if "%~1"=="prerelease" set VSWHERE_WITH_PRERELEASE=1
8+
if "%~2"=="prerelease" set VSWHERE_WITH_PRERELEASE=1
99
set "InstallerPath=%ProgramFiles(x86)%\Microsoft Visual Studio\Installer"
1010
if not exist "%InstallerPath%" set "InstallerPath=%ProgramFiles%\Microsoft Visual Studio\Installer"
1111
if not exist "%InstallerPath%" goto :no-vswhere

‎vcbuild.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ echo Looking for Visual Studio 2019
249249
@rem cleared first as vswhere_usability_wrapper.cmd doesn't when it fails to
250250
@rem detect the version searched for
251251
if not defined target_env set "VCINSTALLDIR="
252-
call tools\msvs\vswhere_usability_wrapper.cmd "[16.0,17.0)"
252+
call tools\msvs\vswhere_usability_wrapper.cmd "[16.0,17.0)" "prerelease"
253253
if "_%VCINSTALLDIR%_" == "__" goto vs-set-2017
254254
set "WIXSDKDIR=%WIX%\SDK\VS2017"
255255
if defined msi (

0 commit comments

Comments
 (0)
Please sign in to comment.