Disable constexpr support for QNX
Even though the compiler on QNX supports C++11, the stdlib it ships with is missing constexpr on many important functions. This is required to make qtbase compile on QNX 6.6. Change-Id: I59a4263483b1d94b9d2dceb947876e445f9662af Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
This commit is contained in:
parent
7f12b9da18
commit
c38b6a3fde
@ -903,6 +903,11 @@
|
|||||||
# undef Q_COMPILER_UNICODE_STRINGS
|
# undef Q_COMPILER_UNICODE_STRINGS
|
||||||
# undef Q_COMPILER_NOEXCEPT
|
# undef Q_COMPILER_NOEXCEPT
|
||||||
# endif
|
# endif
|
||||||
|
# if defined(_HAS_DINKUM_CLIB) && !defined(_HAS_CONSTEXPR)
|
||||||
|
// The libcpp is missing constexpr keywords on important functions like std::numeric_limits<>::min()
|
||||||
|
// Disable constexpr support on QNX even if the compiler supports it
|
||||||
|
# undef Q_COMPILER_CONSTEXPR
|
||||||
|
# endif
|
||||||
# endif // Q_OS_QNX
|
# endif // Q_OS_QNX
|
||||||
# if (defined(Q_CC_CLANG) || defined(Q_CC_INTEL)) && defined(Q_OS_MAC) && defined(__GNUC_LIBSTD__) \
|
# if (defined(Q_CC_CLANG) || defined(Q_CC_INTEL)) && defined(Q_OS_MAC) && defined(__GNUC_LIBSTD__) \
|
||||||
&& ((__GNUC_LIBSTD__-0) * 100 + __GNUC_LIBSTD_MINOR__-0 <= 402)
|
&& ((__GNUC_LIBSTD__-0) * 100 + __GNUC_LIBSTD_MINOR__-0 <= 402)
|
||||||
|
Loading…
Reference in New Issue
Block a user