qt5base-lts/mkspecs/features/mac
Tor Arne Vestbø 9082cc8e8d macOS: Don't hard-code x86_64 as the architecture when using qmake
The qmake variable QMAKE_APPLE_DEVICE_ARCHS was added for iOS,
to support universal builds, as the QT_ARCH is a single value.

Since the qmake macOS builds are non-universal (at the moment),
we remove the hard-coded value for QMAKE_APPLE_DEVICE_ARCHS on
macOS, and let the normal architecture test resolve the arch,
like on other platforms.

To ensure that the following configuration tests are run with
an -arch argument, we trigger a commit of the preliminary Qt
configuration after running the architecture test. This is not
strictly necessary, but makes it clearer what's going on during
configure.

The device_and_simulator configuration option was used by the
iOS toolchain, and needed to be moved up in the configuration
test order to not break later tests.

The logic in mac/default_post.prf for both Xcode and Makefiles
to add -arch flags was kept as is, based on the existing
variable, to avoid too many changes to this logic.

The logic in toolchain.prf was amended to make it clear and
ensure that it only applies to iOS builds. macOS builds do
not have this issue.

Pick-to: 6.0
Pick-to: 5.15
Pick-to: 5.12
Change-Id: I70db7e4c27f0d3da5d0af33cb491d72c312d3fa8
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2020-12-07 15:35:55 +01: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 macOS: Don't hard-code x86_64 as the architecture when using qmake 2020-12-07 15:35:55 +01: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
sdk.mk macOS: Don't check for stale SDK unless target needs to be remade 2019-01-29 11:08:31 +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