Move the SSE2/AVX/Neon/etc. flags into the compiler mkspecs
authorThiago Macieira <thiago.macieira@intel.com>
Thu, 31 May 2012 12:58:53 +0000 (14:58 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 12 Jun 2012 02:29:42 +0000 (04:29 +0200)
commit6a51062e996ec38b3ebc1e0de04af73a5c62a1a0
treeb87f123219f5020e6c3b299f8f7fc393670f831f
parent0d456996023053ca491ac28e6d706fa01de22dd2
Move the SSE2/AVX/Neon/etc. flags into the compiler mkspecs

This allows us to have different flags for the compilers for
supporting the same feature. For example, the official flag in GCC to
support AVX2 is -mavx2, but ICC does not support it (yet), requiring
-march=core-avx2 or -xCORE-AVX2. That flag, instead, enables support
for all the features that the "Core-AVX2" processor (codename Haswell)
will support. And clearly, the MSVC flags are different.

Change-Id: I33b6d8617520925e807747180a8dbaafd79b7a9a
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
19 files changed:
config.tests/unix/avx/avx.pro
config.tests/unix/avx2/avx2.pro
config.tests/unix/iwmmxt/iwmmxt.pro
config.tests/unix/neon/neon.pro
config.tests/unix/sse2/sse2.pro
config.tests/unix/sse3/sse3.pro
config.tests/unix/sse4_1/sse4_1.pro
config.tests/unix/sse4_2/sse4_2.pro
config.tests/unix/ssse3/ssse3.pro
configure
mkspecs/common/clang.conf
mkspecs/common/gcc-base.conf
mkspecs/linux-icc/qmake.conf
mkspecs/win32-g++/qmake.conf
mkspecs/win32-msvc11/qmake.conf
mkspecs/win32-msvc2005/qmake.conf
mkspecs/win32-msvc2008/qmake.conf
mkspecs/win32-msvc2010/qmake.conf
src/gui/gui.pro