Skip to content

Commit a290137

Browse files
Abseil Teamcopybara-github
authored andcommitted
Xtensa does not support thread_local. Disable it in absl/base/config.h.
PiperOrigin-RevId: 730515423 Change-Id: Ic5a5f0881bfc532f10da35a0e038875d587ac2b8
1 parent 2bcf1c5 commit a290137

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

absl/base/config.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,12 +276,10 @@ static_assert(ABSL_INTERNAL_INLINE_NAMESPACE_STR[0] != 'h' ||
276276

277277
// ABSL_HAVE_THREAD_LOCAL
278278
//
279-
// DEPRECATED - `thread_local` is available on all supported platforms.
280-
// Checks whether C++11's `thread_local` storage duration specifier is
281-
// supported.
279+
// Checks whether the `thread_local` storage duration specifier is supported.
282280
#ifdef ABSL_HAVE_THREAD_LOCAL
283281
#error ABSL_HAVE_THREAD_LOCAL cannot be directly set
284-
#else
282+
#elif !defined(__XTENSA__)
285283
#define ABSL_HAVE_THREAD_LOCAL 1
286284
#endif
287285

0 commit comments

Comments
 (0)