summaryrefslogtreecommitdiffstats
path: root/mkspecs/macx-ios-clang/features/qt_config.prf
diff options
context:
space:
mode:
Diffstat (limited to 'mkspecs/macx-ios-clang/features/qt_config.prf')
-rw-r--r--mkspecs/macx-ios-clang/features/qt_config.prf12
1 files changed, 12 insertions, 0 deletions
diff --git a/mkspecs/macx-ios-clang/features/qt_config.prf b/mkspecs/macx-ios-clang/features/qt_config.prf
new file mode 100644
index 0000000000..d9a13f65eb
--- /dev/null
+++ b/mkspecs/macx-ios-clang/features/qt_config.prf
@@ -0,0 +1,12 @@
+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.
+ contains(QMAKE_MAC_SDK, iphoneos.*): \
+ QT_ARCH = arm
+ else: \ # Simulator
+ QT_ARCH = i386
+}