summaryrefslogtreecommitdiffstats
path: root/config.tests/common/avx/avx.pro
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2015-11-16 14:56:07 -0800
committerThiago Macieira <thiago.macieira@intel.com>2015-12-05 00:10:35 +0000
commit4242fe0a039f271b98f7a2b6125ba76a45783ad1 (patch)
tree67ffc681c79702aa82d22bf4c1c0b25ef4efe11a /config.tests/common/avx/avx.pro
parentd386ec1fd8f4340af70a2b8687a753b46eb973ca (diff)
Silence cl.exe warning about -arch:SSE2 being unknown in 64-bit builds
That implies we need to differentiate between a variable set but empty and an empty variable. GCC, Clang and the Intel compiler accept -msse2 on 64-bit builds without warning (they also accept -mno-sse2), but the Microsoft compiler does not have that option. Change-Id: I54233388ba10994996ae3e749fd829085e8fd7b7 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'config.tests/common/avx/avx.pro')
-rw-r--r--config.tests/common/avx/avx.pro2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.tests/common/avx/avx.pro b/config.tests/common/avx/avx.pro
index 8d1b9702bc..bf84089883 100644
--- a/config.tests/common/avx/avx.pro
+++ b/config.tests/common/avx/avx.pro
@@ -1,5 +1,5 @@
SOURCES = avx.cpp
CONFIG -= qt dylib release debug_and_release
CONFIG += debug console
-isEmpty(QMAKE_CFLAGS_AVX):error("This compiler does not support AVX")
+!defined(QMAKE_CFLAGS_AVX, "var"):error("This compiler does not support AVX")
else:QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_AVX