Disable C++11 thread_local with ICC on OS X

It appears the ABI is lacking support for this at this point in time,
even though __thread works. ICC 15 works, probably by making it an alias
to __thread, but neither ICC 16 beta nor Clang work with thread_local.

Intel-bug: DPD200371699
Intel-ID: 6000107242
Change-Id: I049a653beeb5454c9539ffff13e639bdb83b8843
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
This commit is contained in:
Thiago Macieira 2015-06-09 17:43:38 -07:00
parent 741a7aef58
commit 4ce05c6084

View File

@ -556,7 +556,10 @@
# define Q_COMPILER_ALIGNAS
# define Q_COMPILER_ALIGNOF
# define Q_COMPILER_INHERITING_CONSTRUCTORS
# define Q_COMPILER_THREAD_LOCAL
# ifndef Q_OS_OSX
// C++11 thread_local is broken on OS X (Clang doesn't support it either)
# define Q_COMPILER_THREAD_LOCAL
# endif
# define Q_COMPILER_UDL
# endif
# endif