Fix C++11 support in clang prior to 3.2
The comments in this file suggested that the bug was only present in clang/3.1. However, qRegisterMetaType was failing even on clang 3.2 ("tags/RELEASE_32/final"). The clang's bugzilla says [1] that the problem was fixed two days before the release of 3.2, but apparently it didn't make it to the release branch. [1] http://llvm.org/bugs/show_bug.cgi?id=13470 Change-Id: I37db8f6f6b22ab939110e79240d92313c1786d6a Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
parent
4731ced45b
commit
cc38a1eee8
@ -113,10 +113,10 @@ QT_END_NAMESPACE
|
|||||||
// New atomics
|
// New atomics
|
||||||
|
|
||||||
#if defined(Q_COMPILER_CONSTEXPR) && defined(Q_COMPILER_DEFAULT_MEMBERS) && defined(Q_COMPILER_DELETE_MEMBERS)
|
#if defined(Q_COMPILER_CONSTEXPR) && defined(Q_COMPILER_DEFAULT_MEMBERS) && defined(Q_COMPILER_DELETE_MEMBERS)
|
||||||
# if defined(Q_CC_CLANG) && ((((__clang_major__ * 100) + __clang_minor__) < 302) \
|
# if defined(Q_CC_CLANG) && ((((__clang_major__ * 100) + __clang_minor__) < 303) \
|
||||||
|| defined(__apple_build_version__) \
|
|| defined(__apple_build_version__) \
|
||||||
)
|
)
|
||||||
/* Do not define QT_BASIC_ATOMIC_HAS_CONSTRUCTORS for "stock" clang before version 3.2.
|
/* Do not define QT_BASIC_ATOMIC_HAS_CONSTRUCTORS for "stock" clang before version 3.3.
|
||||||
Apple's version has different (higher!) version numbers, so disable it for all of them for now.
|
Apple's version has different (higher!) version numbers, so disable it for all of them for now.
|
||||||
(The only way to distinguish between them seems to be a check for __apple_build_version__ .)
|
(The only way to distinguish between them seems to be a check for __apple_build_version__ .)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user