Skip to content

Commit acaa4c8

Browse files
authored
[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
1 parent 8ab82a2 commit acaa4c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxxabi/src/cxa_exception_storage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ extern "C" {
2424
} // extern "C"
2525
} // namespace __cxxabiv1
2626

27-
#elif defined(HAS_THREAD_LOCAL)
27+
#elif __has_feature(cxx_thread_local)
2828

2929
namespace __cxxabiv1 {
3030
namespace {

0 commit comments

Comments
 (0)