summaryrefslogtreecommitdiffstats
path: root/config.tests/avx512/avx512.pro
diff options
context:
space:
mode:
Diffstat (limited to 'config.tests/avx512/avx512.pro')
-rw-r--r--config.tests/avx512/avx512.pro10
1 files changed, 10 insertions, 0 deletions
diff --git a/config.tests/avx512/avx512.pro b/config.tests/avx512/avx512.pro
new file mode 100644
index 0000000000..1edf5e5432
--- /dev/null
+++ b/config.tests/avx512/avx512.pro
@@ -0,0 +1,10 @@
+SOURCES = avx512.cpp
+
+!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