4242fe0a03
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>
13 lines
357 B
Prolog
13 lines
357 B
Prolog
SOURCES = avx512.cpp
|
|
CONFIG -= qt dylib release debug_and_release
|
|
CONFIG += debug console
|
|
|
|
!defined(AVX512, "var"): error("You must set the AVX512 variable!")
|
|
|
|
varname = QMAKE_CFLAGS_AVX512$$AVX512
|
|
value = $$eval($$varname)
|
|
!defined($$varname, "var"): error("This compiler does not support AVX512")
|
|
|
|
QMAKE_CXXFLAGS += $$value
|
|
DEFINES += AVX512WANT=$$AVX512
|