diff options
author | Abseil Team <absl-team@google.com> | 2022-05-26 11:06:19 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-05-26 11:07:06 -0700 |
commit | 89cdaed6557dbfb8cc8fba53a9dc8baf332df8b0 (patch) | |
tree | d551708392cd9d0b2de4048b9c5b1c04c2172f4d /absl | |
parent | 0bc4bc237786a78e7b00a7c663d53ac81a03ec95 (diff) |
Enable __thread on Asylo
PiperOrigin-RevId: 451201387
Change-Id: Ibeac4f24d00e28bbfc61e476936d669321a2cb24
Diffstat (limited to 'absl')
-rw-r--r-- | absl/base/config.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/absl/base/config.h b/absl/base/config.h index 5985358f..4223629e 100644 --- a/absl/base/config.h +++ b/absl/base/config.h @@ -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 |