summaryrefslogtreecommitdiffstats
path: root/config.tests/common/sse4_2
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/sse4_2
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/sse4_2')
-rw-r--r--config.tests/common/sse4_2/sse4_2.pro2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.tests/common/sse4_2/sse4_2.pro b/config.tests/common/sse4_2/sse4_2.pro
index 6a04b1f9a5..3816fdeae9 100644
--- a/config.tests/common/sse4_2/sse4_2.pro
+++ b/config.tests/common/sse4_2/sse4_2.pro
@@ -1,5 +1,5 @@
SOURCES = sse4_2.cpp
CONFIG -= qt dylib release debug_and_release
CONFIG += debug console
-isEmpty(QMAKE_CFLAGS_SSE4_2):error("This compiler does not support SSE4.2")
+!defined(QMAKE_CFLAGS_SSE4_2, "var"):error("This compiler does not support SSE4.2")
else:QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_SSE4_2