diff options
author | Tor Arne Vestbø <tor.arne.vestbo@digia.com> | 2014-01-16 19:43:07 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-18 18:50:14 +0100 |
commit | c5192b300e7f3e24720a5886a25ed932e0e7f335 (patch) | |
tree | e355039809f2307b828030f5e5b7ba830e583f4b /mkspecs/macx-ios-clang/features/default_pre.prf | |
parent | b157a5795381aea259969b4550e055d52df47bd3 (diff) |
iOS: Fix simulator build by enabling SSE2 code paths
Commit 3c375a76a13e151496ccfea0a2b3ff9fdc75784f enabled SSE2 in Qt,
but we failed to build the files that implemented the SSE2 specific
drawhelpers and image functions. Since we know what the iOS simulator
supports and the platforms it runs on we can safely enable this
ourselves without it being based on a configure test.
Change-Id: I0cfc43de80068b89aa47c34ffa84ee1c1734886c
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
Diffstat (limited to 'mkspecs/macx-ios-clang/features/default_pre.prf')
-rw-r--r-- | mkspecs/macx-ios-clang/features/default_pre.prf | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mkspecs/macx-ios-clang/features/default_pre.prf b/mkspecs/macx-ios-clang/features/default_pre.prf index 3501f5eae0..7b8f9c9b5d 100644 --- a/mkspecs/macx-ios-clang/features/default_pre.prf +++ b/mkspecs/macx-ios-clang/features/default_pre.prf @@ -8,3 +8,12 @@ load(default_pre) # Check for supported Xcode versions lessThan(QMAKE_XCODE_VERSION, "4.3"): \ error("This mkspec requires Xcode 4.3 or later") + +iphonesimulator_and_iphoneos:iphonesimulator { + # For a iphonesimulator_and_iphoneos build all the config tests + # are based on the iPhoneOS ARM SDK, but we know that the simulator + # is i386 and that we support SSE/SSE2. + QT_ARCH = i386 + QT_CPU_FEATURES.i386 = sse sse2 + DEFINES += QT_COMPILER_SUPPORTS_SSE2 +} |