qt5base-lts/config.tests/common/rdrnd/rdrnd.pro
Thiago Macieira dfdc466dc1 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>
2017-06-12 06:14:48 +00:00

4 lines
166 B
Prolog

SOURCES += rdrnd.cpp
!defined(QMAKE_CFLAGS_RDRND, "var"): error("This compiler does not support the RDRAND instruction")
else: QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_RDRND