https://git.reactos.org/?p=reactos.git;a=commitdiff;h=30c7c161fcfbadaa4dda8c6ad479ef0c86b9577e
commit 30c7c161fcfbadaa4dda8c6ad479ef0c86b9577e Author: Konrad Dybcio <[email protected]> AuthorDate: Sat Oct 16 00:38:33 2021 +0200 Commit: GitHub <[email protected]> CommitDate: Sat Oct 16 01:38:33 2021 +0300 [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 <[email protected]> Reviewed-by: Serge Gautherie <[email protected]> Signed-off-by: Konrad Dybcio <[email protected]> --- sdk/cmake/host-tools.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sdk/cmake/host-tools.cmake b/sdk/cmake/host-tools.cmake index a415297455c..a3e7947cd82 100644 --- a/sdk/cmake/host-tools.cmake +++ b/sdk/cmake/host-tools.cmake @@ -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()
