~lttng/urcu/trunk

Viewing all changes in revision 1375.

  • Committer: Mathieu Desnoyers
  • Author(s): Michael Jeanson
  • Date: 2021-09-10 18:20:37 UTC
  • Revision ID: git-v1:e915ab84fd0c02d37504f3eb1e1f3be93ea6dc37
fix: don't use C++ thread_local on MacOs

Recent versions of Apple's clang++ do support 'thread_local' but the
implementation generates additional helper symbols. This is a problem
when accessing an extern TLS variable in a C++ compile unit that is
provided by a C library that doesn't have those extra symbols.

Fallback to using '__thread' on MacOs.

Change-Id: I87cb5b3c9293f7bf66f7115f453b546dd793a449
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: