summaryrefslogtreecommitdiffstats
path: root/config.tests/common/avx512/avx512.pro
diff options
context:
space:
mode:
Diffstat (limited to 'config.tests/common/avx512/avx512.pro')
-rw-r--r--config.tests/common/avx512/avx512.pro12
1 files changed, 12 insertions, 0 deletions
diff --git a/config.tests/common/avx512/avx512.pro b/config.tests/common/avx512/avx512.pro
new file mode 100644
index 0000000000..37cfb2ea54
--- /dev/null
+++ b/config.tests/common/avx512/avx512.pro
@@ -0,0 +1,12 @@
+SOURCES = avx512.cpp
+CONFIG -= qt dylib release debug_and_release
+CONFIG += debug console
+
+isEmpty(AVX512): error("You must set the AVX512 variable!")
+
+varname = QMAKE_CFLAGS_AVX512$$AVX512
+value = $$eval($$varname)
+isEmpty($$varname): error("This compiler does not support AVX512")
+
+QMAKE_CXXFLAGS += $$value
+DEFINES += AVX512WANT=$$AVX512