Also check processor

This commit is contained in:
Amos Bird 2023-08-22 10:38:03 +08:00
parent 1d40833a3b
commit a159376a96
No known key found for this signature in database
GPG Key ID: 80D430DCBECFEDB4

View File

@ -27,8 +27,8 @@ endif ()
# will try to configure NATIVE LLVM targets with all tests enabled (You'll see # will try to configure NATIVE LLVM targets with all tests enabled (You'll see
# Building native llvm-tblgen...). # Building native llvm-tblgen...).
# #
# Here we set it manually by checking system name. # Here we set it manually by checking system name and processor.
if (${CMAKE_SYSTEM_NAME} STREQUAL ${CMAKE_HOST_SYSTEM_NAME}) if (${CMAKE_SYSTEM_NAME} STREQUAL ${CMAKE_HOST_SYSTEM_NAME} AND ${CMAKE_SYSTEM_PROCESSOR} STREQUAL ${CMAKE_HOST_SYSTEM_PROCESSOR})
set (CMAKE_CROSSCOMPILING 0) set (CMAKE_CROSSCOMPILING 0)
endif () endif ()