diff options
author | Martin Storsjö <martin@martin.st> | 2021-08-06 11:36:21 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2021-08-09 11:31:28 +0300 |
commit | c84ad73a27da69975f9d4c44cae843b30e35542d (patch) | |
tree | 94496e6db735dd2473b85966a0cbb88d90625185 /lldb/unittests/ScriptInterpreter/Python | |
parent | 53642d5b800c1d22ba11bb38b7c2ff3d7d52548e (diff) | |
download | llvm-c84ad73a27da69975f9d4c44cae843b30e35542d.zip llvm-c84ad73a27da69975f9d4c44cae843b30e35542d.tar.gz llvm-c84ad73a27da69975f9d4c44cae843b30e35542d.tar.bz2 |
[CMake] Improve GetHostTriple for Windows/ARM configurations
In MSVC mode, CMake provides CMAKE_C_COMPILER_ARCHITECTURE_ID,
which should be accurate for what the compiler produces. Keep
the old CMAKE_C_SIZEOF_VOID_P based fallback in case this
doesn't provide matches.
In GCC/MinGW mode, CMake doesn't provide that. As we're trying to
guess the default host architecture, use CMAKE_HOST_SYSTEM_PROCESSOR
in combination with the existing CMAKE_C_SIZEOF_VOID_P check to
estimate whether it's x86/x86_64/arm/aarch64.
Differential Revision: https://reviews.llvm.org/D107626
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions