[all-commits] [llvm/llvm-project] cb254d: [Windows] Don't try to use x64 linker on ARM64 Win...

Eli Friedman via All-commits all-commits at lists.llvm.org
Mon Feb 28 17:01:12 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cb254d5919814402163c83c90248f666409f875f
      https://github.com/llvm/llvm-project/commit/cb254d5919814402163c83c90248f666409f875f
  Author: Eli Friedman <efriedma at quicinc.com>
  Date:   2022-02-28 (Mon, 28 Feb 2022)

  Changed paths:
    M llvm/lib/WindowsDriver/MSVCPaths.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list