CMake/macOS: don't conclude x86_64h is a cross-compilation on x86_64

Pick-to: 6.8
Change-Id: I60f6907e58e98e54c000fffd840dcce413b569b6
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Thiago Macieira 2024-08-28 16:08:26 -07:00
parent 6e5eb082c9
commit 081394894b

View File

@ -445,7 +445,8 @@ function(qt_auto_detect_macos_single_arch_cross_compilation)
endif()
qt_internal_get_early_apple_host_system_arch(host_arch)
if(NOT "${host_arch}" STREQUAL "${target_arch}")
if(NOT "${host_arch}" STREQUAL "${target_arch}" AND
NOT ("${host_arch}" STREQUAL "x86_64" AND "${target_arch}" STREQUAL "x86_64h"))
message(
STATUS "Detected implicit macOS cross-compilation. "
"Host arch: ${host_arch} Target arch: ${target_arch}. "