diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2023-05-04 14:43:36 +0200 |
---|---|---|
committer | Alexey Edelev <alexey.edelev@qt.io> | 2023-05-05 07:56:36 +0000 |
commit | e891b55398a0044cc3eef5f08e4db2c25f4087cc (patch) | |
tree | 8ee4be724d7630b0000d43d2a5b2d70c9116cd79 | |
parent | aa0e0073655f251a13a9846d2c9e70488b8664b8 (diff) | |
download | qtdoc-e891b55398a0044cc3eef5f08e4db2c25f4087cc.tar.gz |
Note that universal builds need to include host arch in CMAKE_OSX_ARCHITECTURES
The CMAKE_OSX_ARCHITECTURES variable must include the host arch
when doing universal builds of Qt, otherwise we won't be able
to run the host tools during the build.
Pick-to: 6.5 6.2
Task-number: QTBUG-113257
Change-Id: Iafd0d5b76dba498e363f67a930bf722c3a2bfc7a
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
-rw-r--r-- | doc/src/platforms/macos.qdoc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/src/platforms/macos.qdoc b/doc/src/platforms/macos.qdoc index 364337d1..a9fa10bd 100644 --- a/doc/src/platforms/macos.qdoc +++ b/doc/src/platforms/macos.qdoc @@ -329,6 +329,10 @@ ./configure -- -DCMAKE_OSX_ARCHITECTURES="x86_64h;arm64" \endcode + \note A universal build always needs to include the architecture of + your development machine, as the process relies on tools that are built + and run on your machine as part of the overall build. + Be careful to specify the Intel architecture ("x86_64h") first, otherwise Qt may not enable all the x86 functionality. |