Skip to content

Commit af83e89

Browse files
committed
[libc++][format] Improve Add basic_format_parse_context.
Add an additional guard to prevent building on older clang versions. This should fix the build of https://buildkite.com/mlir/mlir-core
1 parent 0dc6122 commit af83e89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/include/format

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
7979
// If the compiler has no concepts support, the format header will be disabled.
8080
// Without concepts support enable_if needs to be used and that too much effort
8181
// to support compilers with partial C++20 support.
82-
#ifndef _LIBCPP_HAS_NO_CONCEPTS
82+
#if !defined(_LIBCPP_HAS_NO_CONCEPTS) && !defined(_LIBCPP_HAS_NO_BUILTIN_IS_CONSTANT_EVALUATED)
8383

8484
class _LIBCPP_EXCEPTION_ABI format_error : public runtime_error {
8585
public:
@@ -172,7 +172,7 @@ private:
172172
using format_parse_context = basic_format_parse_context<char>;
173173
using wformat_parse_context = basic_format_parse_context<wchar_t>;
174174

175-
#endif //_LIBCPP_HAS_NO_CONCEPTS
175+
#endif // !defined(_LIBCPP_HAS_NO_CONCEPTS) && !defined(_LIBCPP_HAS_NO_BUILTIN_IS_CONSTANT_EVALUATED)
176176
#endif //_LIBCPP_STD_VER > 17
177177

178178
_LIBCPP_END_NAMESPACE_STD

0 commit comments

Comments
 (0)