[SDK] host-tools.cmake: Allow cross-compilation from aarch64 (#4013)

Some compilers call it 'arm64', while others prefer 'aarch64'. It's a big mess,
thanks Arm Ltd...

Reviewed-by: Stanislav Motylkov <x86corez@gmail.com>
Reviewed-by: Serge Gautherie <reactos-git_serge_171003@gautherie.fr>
Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
This commit is contained in:
Konrad Dybcio 2021-10-16 00:38:33 +02:00 committed by GitHub
parent dff479c82f
commit 30c7c161fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,6 +40,10 @@ function(setup_host_tools)
elseif(lowercase_CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL arm)
set(HOST_ARCH arm)
set(VCVARSALL_ARCH arm)
# 'aarch64' is used in GNU tools instead of 'arm64'
elseif(lowercase_CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL arm64 OR lowercase_CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL aarch64)
set(HOST_ARCH arm64)
set(VCVARSALL_ARCH arm64)
else()
message(FATAL_ERROR "Unknown host architecture: ${lowercase_CMAKE_HOST_SYSTEM_PROCESSOR}")
endif()