[libcxx-commits] [libcxx] 9b03c08 - [libc++] Don't warn that coroutines aren't supported when including <experimental/coroutine>
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Mar 5 10:01:55 PST 2022
Author: Nikolas Klauser
Date: 2022-03-05T19:01:49+01:00
New Revision: 9b03c08e8517ed2d95a91202744d07f7376848a9
URL: https://github.com/llvm/llvm-project/commit/9b03c08e8517ed2d95a91202744d07f7376848a9
DIFF: https://github.com/llvm/llvm-project/commit/9b03c08e8517ed2d95a91202744d07f7376848a9.diff
LOG: [libc++] Don't warn that coroutines aren't supported when including <experimental/coroutine>
This change makes the behavior of `<experimental/coroutine>` consistent with other headers that only work conditionally.
Reviewed By: ldionne, #libc
Spies: Mordante, ChuanqiXu, libcxx-commits, arichardson
Differential Revision: https://reviews.llvm.org/D119964
Added:
Modified:
libcxx/include/experimental/coroutine
Removed:
################################################################################
diff --git a/libcxx/include/experimental/coroutine b/libcxx/include/experimental/coroutine
index 5a3a095ad1045..837ab10766df4 100644
--- a/libcxx/include/experimental/coroutine
+++ b/libcxx/include/experimental/coroutine
@@ -57,14 +57,6 @@ template <class P> struct hash<coroutine_handle<P>>;
# pragma GCC system_header
#endif
-#ifdef _LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES
-# if defined(_LIBCPP_WARNING)
- _LIBCPP_WARNING("<experimental/coroutine> cannot be used with this compiler")
-# else
-# warning <experimental/coroutine> cannot be used with this compiler
-# endif
-#endif
-
#ifndef _LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES
_LIBCPP_BEGIN_NAMESPACE_EXPERIMENTAL_COROUTINES
More information about the libcxx-commits
mailing list