From 65eed6d5978738b06e047c9bd5d162b2596759f7 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 11 Oct 2017 13:25:44 +0200 Subject: configure: make C++11 a required functionality Error out if it's missing or broken (Mersenne Twister not present). This ensures that we never have a low-quality random generator in Qt. Change-Id: I0a103569c81b4711a649fffd14ec80649df7087e Reviewed-by: Lars Knoll --- src/corelib/configure.json | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/corelib/configure.json') diff --git a/src/corelib/configure.json b/src/corelib/configure.json index 51e6d1d391..8067ca70f1 100644 --- a/src/corelib/configure.json +++ b/src/corelib/configure.json @@ -459,11 +459,6 @@ "condition": "tests.cxx11_future", "output": [ "publicFeature" ] }, - "cxx11_random": { - "label": "C++11 ", - "condition": "tests.cxx11_random", - "output": [ "privateFeature" ] - }, "eventfd": { "label": "eventfd", "condition": "tests.eventfd", @@ -869,9 +864,9 @@ ensure that the IDEs they use either set QT_LOGGING_TO_CONSOLE to 1 or are able to read the logged output from journald, syslog or slog2." }, { - "type": "warning", - "condition": "!config.win32 && !config.darwin && !config.bsd && !features.cxx11_random", - "message": "No high-quality PRNG available for QRandomGenerator fallback.\nIf the HW or OS RNG fails, Qt will abort execution." + "type": "error", + "condition": "!tests.cxx11_random", + "message": "C++11 is required and is missing or failed to compile." }, { "type": "error", -- cgit v1.2.3