VS: Use 64-bit MSBuild in VS 2022

Visual Studio 17 2022 is now a 64-bit native application.  It places the
64-bit `MSBuild.exe` in the `PATH` of VS command prompts, so prefer it
for this version and above.

This was previously attempted for older VS versions, but reverted by
commit f3cedf38 (VS: Revert "Use MSBuild matching toolset host
architecture", 2019-03-12, v3.14.0~1^2).  For now, do not use the 64-bit
MSBuild for VS 16 and below.

Fixes: #18219
46 jobs for !6268 with vs2022 in 12 minutes and 31 seconds (queued for 2 seconds)
latest detached
Status Name Job ID Coverage
  Build
manual build:centos6-x86_64 #5909999
cmake build docker linux manual
manual build:fedora34-ninja #5910000
cmake build docker linux linux-3.17 manual
manual build:macos-x86_64-makefiles #5910002
cmake macos shell xcode-12.5 nonconcurrent manual
manual build:macos-x86_64-ninja #5910001
cmake macos shell xcode-12.5 nonconcurrent manual
manual build:windows-vs2019-x64-ninja #5910003
cmake windows shell vs2019 msvc-19.29-16.10 nonconcurrent manual
passed lint:codespell #5909995
cmake build docker linux

00:00:19

passed lint:debian10-iwyu #5909996
cmake build docker linux

00:01:33

passed lint:fedora34-sphinx #5909998
cmake build docker linux linux-3.17

00:05:17

passed lint:fedora34-tidy #5909997
cmake build docker linux linux-3.17

00:11:55

 
  Test
created test:fedora34-ninja #5910004
cmake docker linux linux-3.17 x11
created test:macos-x86_64-makefiles #5910006
cmake macos shell xcode-12.5 nonconcurrent
created test:macos-x86_64-ninja #5910005
cmake macos shell xcode-12.5 nonconcurrent
created test:windows-vs2019-x64-ninja #5910007
cmake windows shell vs2019 msvc-19.29-16.10 nonconcurrent
 
  Test Ext
created test:cuda10.2-nvidia #5910010
cmake cuda-rt docker linux
created test:debian10-ninja #5910008
cmake build docker linux linux-3.17
created test:fedora34-makefiles #5910009
linux linux-3.17 cmake build docker
created test:fedora34-ninja-multi #5910011
cmake build docker linux linux-3.17
created test:macos-x86_64-xcode #5910012
cmake macos shell xcode-12.5 concurrent
created test:windows-vs2019-x64 #5910013
cmake windows shell vs2019 msvc-19.29-16.10 concurrent
 
  External
passed cdash

passed ghostflow-check-master

passed ghostflow-check-release

passed ghostflow-stager

passed cdash

passed cdash

passed cdash

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager