2013-10-17 14:20:42 +00:00
|
|
|
load(qt_config)
|
|
|
|
|
|
|
|
isEmpty(QT_ARCH) {
|
|
|
|
# The configure tests are run without QT_ARCH being resolved yet, which
|
|
|
|
# means we fail to pass -arch to the compiler, resulting in broke tests.
|
|
|
|
# As the Xcode toolchain doesn't seem to have a way to auto-detect the
|
|
|
|
# arch based on the SDK, we have to hard-code the arch for configure.
|
2016-03-07 20:11:11 +00:00
|
|
|
contains(QMAKE_MAC_SDK, $${device.sdk}.*) {
|
2013-10-17 14:20:42 +00:00
|
|
|
QT_ARCH = arm
|
2016-03-07 20:11:11 +00:00
|
|
|
} else { # Simulator
|
2016-02-16 14:29:59 +00:00
|
|
|
ios: QT_ARCH = i386
|
|
|
|
tvos: QT_ARCH = x64
|
2016-05-20 06:01:59 +00:00
|
|
|
watchos: QT_ARCH = i386
|
2016-03-07 20:11:11 +00:00
|
|
|
}
|
2014-10-28 12:27:25 +00:00
|
|
|
|
|
|
|
# Prevent the arch/config tests from building as multi-arch binaries,
|
|
|
|
# as we only want the lowest common denominator features.
|
|
|
|
CONFIG += single_arch
|
2013-10-17 14:20:42 +00:00
|
|
|
}
|