[libcxx-commits] [libcxx] 1a5c92f - [libc++] Fixes _LIBCPP_HAS_NO_CONCEPTS
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Feb 20 00:15:21 PST 2021
Author: Mark de Wever
Date: 2021-02-20T09:13:16+01:00
New Revision: 1a5c92f680218368ba8a0dcd1650a87f42ddd972
URL: https://github.com/llvm/llvm-project/commit/1a5c92f680218368ba8a0dcd1650a87f42ddd972
DIFF: https://github.com/llvm/llvm-project/commit/1a5c92f680218368ba8a0dcd1650a87f42ddd972.diff
LOG: [libc++] Fixes _LIBCPP_HAS_NO_CONCEPTS
Before the define was in a GCC specific part. Now it's available for all
compilers. The patch had its CI run in D93593.
Added:
Modified:
libcxx/include/__config
Removed:
################################################################################
diff --git a/libcxx/include/__config b/libcxx/include/__config
index 102dee1f508b..9d199151e69b 100644
--- a/libcxx/include/__config
+++ b/libcxx/include/__config
@@ -536,10 +536,6 @@ typedef __char32_t char32_t;
#define _LIBCPP_HAS_NO_VARIABLE_TEMPLATES
#endif
-#if !defined(__cpp_concepts) || __cpp_concepts < 201907L
-#define _LIBCPP_HAS_NO_CONCEPTS
-#endif
-
#if !defined(_LIBCPP_HAS_NO_ASAN) && !defined(__SANITIZE_ADDRESS__)
#define _LIBCPP_HAS_NO_ASAN
#endif
@@ -836,6 +832,10 @@ typedef unsigned int char32_t;
# define _LIBCPP_CONSTEVAL consteval
#endif
+#if !defined(__cpp_concepts) || __cpp_concepts < 201907L
+#define _LIBCPP_HAS_NO_CONCEPTS
+#endif
+
#ifdef _LIBCPP_CXX03_LANG
# define _LIBCPP_DEFAULT {}
#else
More information about the libcxx-commits
mailing list