Disable thread_local on clang for FreeBSD
FreeBSD's clang currently is not able to handle thread_local calls due to linker errors on __cxa_thread_atexit. The patch disables the define Q_COMPILER_THREAD_LOCAL for clang __FreeBSD__ only, no functional change. Otherwise, linking the tst_compiler autotest will fail. For details, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192320 Change-Id: I2395c06499d4821213e2154769ccbeed3dcf1ffe Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
0e70d35f15
commit
c85f988fc7
@ -699,7 +699,9 @@
|
||||
# define Q_COMPILER_TEMPLATE_ALIAS
|
||||
# endif
|
||||
# if __has_feature(cxx_thread_local)
|
||||
# define Q_COMPILER_THREAD_LOCAL
|
||||
# if !defined(__FreeBSD__) /* FreeBSD clang fails on __cxa_thread_atexit */
|
||||
# define Q_COMPILER_THREAD_LOCAL
|
||||
# endif
|
||||
# endif
|
||||
# if __has_feature(cxx_user_literals)
|
||||
# define Q_COMPILER_UDL
|
||||
|
Loading…
Reference in New Issue
Block a user