From 66a31331641604a4b4e088b1d2a3c0766b1bdd74 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Tue, 15 Mar 2022 15:39:52 -0400 Subject: [PATCH] build: fix detection of Visual Studio 2019 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If Visual Studio 2017 is not found, attempt to find Visual Studio 2019. PR-URL: https://github.com/nodejs/node/pull/42349 Refs: https://github.blog/changelog/2021-10-19-github-actions-the-windows-2016-runner-image-will-be-removed-from-github-hosted-runners-on-march-15-2022/ Reviewed-By: Mestery Reviewed-By: Luigi Pinca Reviewed-By: Tobias Nießen Reviewed-By: Michaël Zasso Reviewed-By: Antoine du Hamel --- vcbuild.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcbuild.bat b/vcbuild.bat index 86788bd8608ae5..f43dbfb65a0984 100644 --- a/vcbuild.bat +++ b/vcbuild.bat @@ -244,7 +244,7 @@ if %target_arch%==x86 if %msvs_host_arch%==x86 set vcvarsall_arg=x86 if defined target_env if "%target_env%" NEQ "vs2017" goto vs-set-2019 echo Looking for Visual Studio 2017 call tools\msvs\vswhere_usability_wrapper.cmd "[15.0,16.0)" -if "_%VCINSTALLDIR%_" == "__" goto msbuild-not-found +if "_%VCINSTALLDIR%_" == "__" goto vs-set-2019 if defined msi ( echo Looking for WiX installation for Visual Studio 2017... if not exist "%WIX%\SDK\VS2017" (