[Aarch64] Fix assumption that Windows implies x86
authorDavid Truby <david.truby@arm.com>
Mon, 26 Oct 2020 14:45:11 +0000 (14:45 +0000)
committerDavid Truby <david.truby@arm.com>
Fri, 30 Oct 2020 12:11:34 +0000 (12:11 +0000)
commit81b96bb6f1caee90ad64c9c7c80b55c163b1f6a8
tree66bb6088cdeb79d0f6a65d80f90595b02a6b5516
parent781917254dba17df7fb357a5f621ada2ac1b36e3
[Aarch64] Fix assumption that Windows implies x86

When compiling for Windows on Arm the amd64 debug interfce from the Visual
Studio SDK is used as the cmake currently only distinguishes between x86 and
amd64 by checking the pointer size. Instead we can get the target
architecture for the compilier and check that to distinguish between
architectures.
llvm/lib/DebugInfo/PDB/CMakeLists.txt