|
|
|
@ -212,11 +212,12 @@ static_assert(ABSL_INTERNAL_INLINE_NAMESPACE_STR[0] != 'h' || |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
// ABSL_HAVE_TLS is defined to 1 when __thread should be supported.
|
|
|
|
|
// We assume __thread is supported on Linux when compiled with Clang or compiled
|
|
|
|
|
// against libstdc++ with _GLIBCXX_HAVE_TLS defined.
|
|
|
|
|
// We assume __thread is supported on Linux or Asylo when compiled with Clang or
|
|
|
|
|
// compiled against libstdc++ with _GLIBCXX_HAVE_TLS defined.
|
|
|
|
|
#ifdef ABSL_HAVE_TLS |
|
|
|
|
#error ABSL_HAVE_TLS cannot be directly set |
|
|
|
|
#elif defined(__linux__) && (defined(__clang__) || defined(_GLIBCXX_HAVE_TLS)) |
|
|
|
|
#elif (defined(__linux__) || defined(__ASYLO__)) && \ |
|
|
|
|
(defined(__clang__) || defined(_GLIBCXX_HAVE_TLS)) |
|
|
|
|
#define ABSL_HAVE_TLS 1 |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|