[Windows] Don't try to use x64 linker on ARM64 Windows.
authorEli Friedman <efriedma@quicinc.com>
Mon, 28 Feb 2022 21:32:25 +0000 (13:32 -0800)
committerEli Friedman <efriedma@quicinc.com>
Tue, 1 Mar 2022 01:00:50 +0000 (17:00 -0800)
commitcb254d5919814402163c83c90248f666409f875f
tree0b6dae8e8fa05dc677c5c6e0f37e3f8e647eae94
parent96ae86bd2940164c40c68d9d24743594fdca29cb
[Windows] Don't try to use x64 linker on ARM64 Windows.

Trying to invoke an x64 binary on ARM64 Windows 10 won't work, and will
print an obscure error message.  Choose the 32-bit linker instead, which
will run under emulation.

The x64 linker should in theory run under ARM64 Windows 11.  We could
detect this using IsWow64GuestMachineSupported(), but I don't have a
setup to test that with at the moment.

Differential Revision: https://reviews.llvm.org/D120681
llvm/lib/WindowsDriver/MSVCPaths.cpp