summaryrefslogtreecommitdiffstats
path: root/config.tests/unix/sse4_1/sse4_1.pro
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2012-05-31 14:58:53 +0200
committerQt by Nokia <qt-info@nokia.com>2012-06-12 04:29:42 +0200
commit6a51062e996ec38b3ebc1e0de04af73a5c62a1a0 (patch)
treeb87f123219f5020e6c3b299f8f7fc393670f831f /config.tests/unix/sse4_1/sse4_1.pro
parent0d456996023053ca491ac28e6d706fa01de22dd2 (diff)
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>
Diffstat (limited to 'config.tests/unix/sse4_1/sse4_1.pro')
-rw-r--r--config.tests/unix/sse4_1/sse4_1.pro2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.tests/unix/sse4_1/sse4_1.pro b/config.tests/unix/sse4_1/sse4_1.pro
index c6c4746026..539517605d 100644
--- a/config.tests/unix/sse4_1/sse4_1.pro
+++ b/config.tests/unix/sse4_1/sse4_1.pro
@@ -1,3 +1,5 @@
SOURCES = sse4_1.cpp
CONFIG -= x11 qt
mac:CONFIG -= app_bundle
+isEmpty(QMAKE_CFLAGS_SSE4_1):error("This compiler does not support SSE4.1")
+else:QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_SSE4_1