A brute-force solution to get QRandomGenerator build on Integrity
Task-number: QTBUG-64451 Change-Id: Ife11c3448f54609ba6e85a269a3b5376c43a075f Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
2614108696
commit
2884c652b5
|
|
@ -411,11 +411,12 @@ struct QRandomGenerator::SystemAndGlobalGenerators
|
|||
|
||||
void confirmLiteral()
|
||||
{
|
||||
#if defined(Q_COMPILER_CONSTEXPR) && !defined(Q_CC_MSVC)
|
||||
#if defined(Q_COMPILER_CONSTEXPR) && !defined(Q_CC_MSVC) && !defined(Q_OS_INTEGRITY)
|
||||
// Currently fails to compile with MSVC 2017, saying QBasicMutex is not
|
||||
// a literal type. Disassembly with MSVC 2013 and 2015 shows it is
|
||||
// actually a literal; MSVC 2017 has a bug relating to this, so we're
|
||||
// withhold judgement for now.
|
||||
// withhold judgement for now. Integrity's compiler is unable to
|
||||
// guarantee g's alignment for some reason.
|
||||
|
||||
constexpr SystemAndGlobalGenerators g = {};
|
||||
Q_UNUSED(g);
|
||||
|
|
|
|||
Loading…
Reference in New Issue