File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -253,6 +253,14 @@ if %target_arch%==x86 if %msvs_host_arch%==x86 set vcvarsall_arg=x86
253
253
:vs-set-2022
254
254
if defined target_env if " %target_env% " NEQ " vs2022" goto vs-set-2019
255
255
echo Looking for Visual Studio 2022
256
+ @ rem Visual Studio 2022 17.4 added support for native host tools on ARM64
257
+ @ rem https://devblogs.microsoft.com/visualstudio/arm64-visual-studio/
258
+ if _%PROCESSOR_ARCHITECTURE% _== _ARM64_ set msvs_host_arch = arm64
259
+ if _%PROCESSOR_ARCHITEW6432% _== _ARM64_ set msvs_host_arch = arm64
260
+ set vcvarsall_arg = %msvs_host_arch% _%target_arch%
261
+ if %target_arch% == x64 if %msvs_host_arch% == amd64 set vcvarsall_arg = amd64
262
+ if %target_arch% == x86 if %msvs_host_arch% == x86 set vcvarsall_arg = x86
263
+ if %target_arch% == arm64 if %msvs_host_arch% == arm64 set vcvarsall_arg = arm64
256
264
@ rem VCINSTALLDIR may be set if run from a VS Command Prompt and needs to be
257
265
@ rem cleared first as vswhere_usability_wrapper.cmd doesn't when it fails to
258
266
@ rem detect the version searched for
You can’t perform that action at this time.
0 commit comments