summaryrefslogtreecommitdiffstats
path: root/config.tests/common/rdrnd/rdrnd.pro
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2017-04-13 15:44:45 -0700
committerThiago Macieira <thiago.macieira@intel.com>2017-06-12 06:14:48 +0000
commitdfdc466dc1a7b22cbab700a188daba4f052a25ce (patch)
tree3eec9d8b2b32a55b84119c5346482a2572645337 /config.tests/common/rdrnd/rdrnd.pro
parentf17095653ed54c7c253ade6ff639cae6a372cb08 (diff)
Add proper detection of x86 RDRAND instruction
The instruction is "RDRAND", but the feature name, according to GCC, is RDRND, so I had to change some macros in qsimd_p.h. Change-Id: Icd0e0d4b27cb4e5eb892fffd14b5166779137e63 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'config.tests/common/rdrnd/rdrnd.pro')
-rw-r--r--config.tests/common/rdrnd/rdrnd.pro3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.tests/common/rdrnd/rdrnd.pro b/config.tests/common/rdrnd/rdrnd.pro
new file mode 100644
index 0000000000..37e636dc3f
--- /dev/null
+++ b/config.tests/common/rdrnd/rdrnd.pro
@@ -0,0 +1,3 @@
+SOURCES += rdrnd.cpp
+!defined(QMAKE_CFLAGS_RDRND, "var"): error("This compiler does not support the RDRAND instruction")
+else: QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_RDRND