From e28c2b0c540aa3ef8fe1b895984af7a06c2a3e2b Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Thu, 4 May 2023 14:43:36 +0200 Subject: Note that universal builds need to include host arch in CMAKE_OSX_ARCHITECTURES MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. Task-number: QTBUG-113257 Change-Id: Iafd0d5b76dba498e363f67a930bf722c3a2bfc7a Reviewed-by: Leena Miettinen Reviewed-by: Tor Arne Vestbø (cherry picked from commit e891b55398a0044cc3eef5f08e4db2c25f4087cc) Reviewed-by: Qt Cherry-pick Bot --- doc/src/platforms/macos.qdoc | 4 ++++ 1 file changed, 4 insertions(+) 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. -- cgit v1.2.1