build,win: fix vs2022 compilation

PR-URL: https://github.com/nodejs/node/pull/61530
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
This commit is contained in:
Stefan Stojanovic authored and Antoine du Hamel committed 2026-01-28 19:35:57 +01:00
1 parent 39bea2236e
commit fb7868ba98
1 file changed
+1 -1
+1 -1
View File
@@ -270,7 +270,7 @@ if %target_arch%==%msvs_host_arch% set vcvarsall_arg=%target_arch%
@rem Look for Visual Studio 2026
:vs-set-2026
if defined target_env if "%target_env%" NEQ "vs2026" goto msbuild-not-found
if defined target_env if "%target_env%" NEQ "vs2026" goto vs-set-2022
echo Looking for Visual Studio 2026
@rem VCINSTALLDIR may be set if run from a VS Command Prompt and needs to be
@rem cleared first as vswhere_usability_wrapper.cmd doesn't when it fails to