From acaa4c8bfd12eac4fa5f2c03e9d394f7bd8f1bd6 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Mon, 8 Jul 2024 15:20:21 -0500 Subject: [PATCH] [libc++abi] Use __has_feature check to enable usage of thread_local for exception storage (#97591) Previously, we'd use HAS_THREAD_LOCAL which was never defined. Hence, we'd basically never use the code path where we use thread_local. Fixes #78207 --- libcxxabi/src/cxa_exception_storage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcxxabi/src/cxa_exception_storage.cpp b/libcxxabi/src/cxa_exception_storage.cpp index 2479f550e09e..c842da195acc 100644 --- a/libcxxabi/src/cxa_exception_storage.cpp +++ b/libcxxabi/src/cxa_exception_storage.cpp @@ -24,7 +24,7 @@ extern "C" { } // extern "C" } // namespace __cxxabiv1 -#elif defined(HAS_THREAD_LOCAL) +#elif __has_feature(cxx_thread_local) namespace __cxxabiv1 { namespace {