From b4525b34074665ed472cd421077a1633110f16a7 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Thu, 29 Dec 2011 22:44:16 -0200 Subject: Add configure-time checking for the SSE and AVX features on Windows Modify configure.exe to run some configure-time tests and check if the SSE and AVX compiler features are supported. The tests themselves required a bit of changes to compile with MSVC. The include in sse4_2.cpp was wrong. And for whatever reason, it didn't like the volatile variables, which GCC, Clang and ICC have been happy with. This should produce no effect in compilation, though: even dead code must be syntactically correct. We're not running the output. Change-Id: Ibe5d0904a378a7efed853c7215f88a2ddcefb1b3 Reviewed-by: Oswald Buddenhagen --- config.tests/common/avx2/avx2.pro | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config.tests/common/avx2/avx2.pro') diff --git a/config.tests/common/avx2/avx2.pro b/config.tests/common/avx2/avx2.pro index 09590a8379..5aa9429d68 100644 --- a/config.tests/common/avx2/avx2.pro +++ b/config.tests/common/avx2/avx2.pro @@ -1,5 +1,6 @@ SOURCES = avx2.cpp -CONFIG -= x11 qt +CONFIG -= qt dylib release debug_and_release +CONFIG += debug console mac:CONFIG -= app_bundle isEmpty(QMAKE_CFLAGS_AVX2):error("This compiler does not support AVX2") else:QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_AVX2 -- cgit v1.2.3