diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2017-04-13 15:44:45 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2017-06-12 06:14:48 +0000 |
commit | dfdc466dc1a7b22cbab700a188daba4f052a25ce (patch) | |
tree | 3eec9d8b2b32a55b84119c5346482a2572645337 /configure.json | |
parent | f17095653ed54c7c253ade6ff639cae6a372cb08 (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 'configure.json')
-rw-r--r-- | configure.json | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/configure.json b/configure.json index 7a118d860e..545e128b76 100644 --- a/configure.json +++ b/configure.json @@ -321,6 +321,11 @@ "type": "compile", "test": "common/f16c" }, + "rdrnd": { + "label": "RDRAND instruction", + "type": "compile", + "test": "common/rdrnd" + }, "shani": { "label": "SHA new instructions", "type": "compile", @@ -896,6 +901,14 @@ { "type": "define", "name": "QT_COMPILER_SUPPORTS_AES", "value": 1 } ] }, + "rdrnd": { + "label": "RDRAND", + "condition": "tests.rdrnd", + "output": [ + "privateConfig", + { "type": "define", "name": "QT_COMPILER_SUPPORTS_RDRND", "value": 1 } + ] + }, "shani": { "label": "SHA", "condition": "features.sse2 && tests.shani", @@ -1188,7 +1201,7 @@ Configure with '-qreal float' to create a build that is binary-compatible with 5 { "message": "Other x86", "type": "featureList", - "args": "aesni f16c shani", + "args": "aesni f16c rdrnd shani", "condition": "(arch.i386 || arch.x86_64)" }, { |