[libcxx-commits] [libcxx] [libc++] Amend error message for _LIBCPP_HAS_THREAD_API_EXTERNAL (PR #115774)
Caslyn Tonelli via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Nov 11 13:56:32 PST 2024
https://github.com/Caslyn created https://github.com/llvm/llvm-project/pull/115774
Noticed this while debugging a few things following https://github.com/llvm/llvm-project/pull/112094. Amended error message to reflect conditional check.
>From 34372ae5d41ff0ae46e429b307d5d02d6698ad6a Mon Sep 17 00:00:00 2001
From: Caslyn Tonelli <caslyn at google.com>
Date: Mon, 11 Nov 2024 13:18:53 -0800
Subject: [PATCH] [libc++] Amend error message
Noticed this while debugging a few things following
https://github.com/llvm/llvm-project/pull/112094. Amended error message
to reflect conditional check.
---
libcxx/include/__config | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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