[libcxx-commits] [libcxx] bbf2ad0 - [libc++] Amend error message for _LIBCPP_HAS_THREAD_API_EXTERNAL (#115774)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Nov 11 13:58:37 PST 2024
Author: Caslyn Tonelli
Date: 2024-11-11T22:58:34+01:00
New Revision: bbf2ad026eb0b399364a889799ef6b45878cd299
URL: https://github.com/llvm/llvm-project/commit/bbf2ad026eb0b399364a889799ef6b45878cd299
DIFF: https://github.com/llvm/llvm-project/commit/bbf2ad026eb0b399364a889799ef6b45878cd299.diff
LOG: [libc++] Amend error message for _LIBCPP_HAS_THREAD_API_EXTERNAL (#115774)
Noticed this while debugging a few things following
https://github.com/llvm/llvm-project/pull/112094. Amended error message
to reflect conditional check.
Added:
Modified:
libcxx/include/__config
Removed:
################################################################################
diff --git a/libcxx/include/__config b/libcxx/include/__config
index a2a1aa2b2978df..9db00cd0c9fb93 100644
--- a/libcxx/include/__config
+++ b/libcxx/include/__config
@@ -858,7 +858,7 @@ typedef __char32_t char32_t;
# endif
# if !_LIBCPP_HAS_THREADS && _LIBCPP_HAS_THREAD_API_EXTERNAL
-# error _LIBCPP_HAS_THREAD_API_EXTERNAL may not be true when _LIBCPP_HAS_THREADS is true.
+# error _LIBCPP_HAS_THREAD_API_EXTERNAL may only be true when _LIBCPP_HAS_THREADS is true.
# endif
# if !_LIBCPP_HAS_MONOTONIC_CLOCK && _LIBCPP_HAS_THREADS
More information about the libcxx-commits
mailing list