diff options
Diffstat (limited to 'mkspecs')
-rw-r--r-- | mkspecs/macx-ios-clang/features/default_post.prf | 10 | ||||
-rw-r--r-- | mkspecs/macx-ios-clang/features/qt_config.prf | 12 |
2 files changed, 12 insertions, 10 deletions
diff --git a/mkspecs/macx-ios-clang/features/default_post.prf b/mkspecs/macx-ios-clang/features/default_post.prf index e8dc859de6..0922a8e601 100644 --- a/mkspecs/macx-ios-clang/features/default_post.prf +++ b/mkspecs/macx-ios-clang/features/default_post.prf @@ -56,16 +56,6 @@ macx-xcode { QMAKE_MAC_XCODE_SETTINGS += ios_device_family } -isEmpty(QT_ARCH) { - # The iPhoneOS and iPhoneSimulator targets share the same toolchain, - # so when configure runs the arch tests it passes the correct sysroot, - # but we fail to pick up the architecture since we're not passing -arch - # yet. Xcode does not seem to have a way to run the shared toolchain - # in a way that will automatically do this (for example xcrun -sdk). - contains(QMAKE_MAC_SDK, iphoneos.*): QT_ARCH = arm - else: QT_ARCH = i386 # Simulator -} - # Be more specific about which architecture we're targeting equals(QT_ARCH, arm): \ actual_archs = armv7 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 +} |