summaryrefslogtreecommitdiffstats
path: root/src/sql/doc/snippets/code/code.pro
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2024-02-23 18:04:15 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2024-08-23 16:51:57 +0200
commitfc2fa92de02e8b57472058a8281c24775e97d9eb (patch)
treeef209a38c7644220d5a8421e34fd65a2fff35560 /src/sql/doc/snippets/code/code.pro
parent98450a332e317aeafa3381abd6266829e8900758 (diff)
CMake: Automatically detect single arch macOS cross-compilation
Implicitly detect macOS cross-compilation in case the value of CMAKE_OSX_ARCHITECTURES is a single arch that is different from the real host macOS architecture. In that case, the build system will implicitly set both -DCMAKE_SYSTEM_NAME=Darwin and -DCMAKE_CROSSCOMPILING=TRUE. It will also set those variables in the qt generated toolchain file, otherwise user projects might not be built with the correct architecture depending on the arch of the host machine where the user project is built. For such a cross-compilation scenario, as usual, a host Qt needs to be specified during configuration, for usage of its host tools. Which means that if cross-compiling to x86_64 from arm64, we will not try to build and use the x86_64 tools via Rosetta. Pick-to: 6.8 Fixes: QTBUG-121322 Change-Id: Ib484af445b3fc6eb676b0ee174ac81d63f2f450f Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Diffstat (limited to 'src/sql/doc/snippets/code/code.pro')
0 files changed, 0 insertions, 0 deletions