qt5base-lts/mkspecs/features/mac
Tor Arne Vestbø f9c850cc42 qmake: Pick default architecture on macOS based on uname
When dealing with a universal build of Qt, we would end up
using the QT_ARCH as the architecture for user projects,
but this architecture is always the primary one that Qt
was configured with.

Instead of relying on QT_ARCH, we start writing QT_ARCHS
(plural) to qconfig.pri, based on CMAKE_OSX_ARCHITECTURES,
and then use that to initialize QMAKE_APPLE_DEVICE_ARCHS.

We then resolve the active arch using uname -m, matching
what CMake does.

We still feed all the available architectures to the
Makefile or Xcode project, so that the user can build
for any of the available architectures without needing
a reconfigure.

Fixes: QTBUG-93760
Change-Id: I0d338241ba4d944ca36d85371e9c4df7dbc4f269
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2021-05-21 17:45:28 +00:00
..
unsupported Add tool to namespace Objective-C classes at link time 2016-01-29 14:41:21 +00:00
asset_catalogs.prf escape literal backslashes in qmake files 2018-12-12 17:24:39 +00:00
default_post.prf qmake: Pick default architecture on macOS based on uname 2021-05-21 17:45:28 +00:00
default_pre.prf Fix build of applications on iOS 2018-05-13 08:48:53 +00:00
mac.prf Fix resolution of QMAKE_INFO_PLIST for non-bundle artifacts 2017-10-23 13:50:45 +00:00
no_warn_empty_obj_files.prf macOS: Prevent warnings about object files without any symbols 2019-09-25 15:39:02 +02:00
objective_c.prf unset OBJECTIVE_SOURCES and QMAKE_OBJECTIVE_CFLAGS after absorbing them 2016-10-25 17:49:49 +00:00
rez.prf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
sdk.mk qmake: Improve error message when detecting macOS platform SDK upgrade 2021-03-19 15:08:46 +00:00
sdk.prf Fix determination of OpenGL include paths on macOS, take 3 2019-04-27 07:32:53 +00:00
toolchain.prf fix QMAKE_DEFAULT_*DIRS resolution with apple SDK, take 2 2016-10-16 00:12:11 +00:00