From 4242fe0a039f271b98f7a2b6125ba76a45783ad1 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 16 Nov 2015 14:56:07 -0800 Subject: 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 --- config.tests/common/avx/avx.pro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config.tests/common/avx/avx.pro') 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 -- cgit v1.2.3