From 9d518243a49ca6d2a94518aae1568dbd7998cae3 Mon Sep 17 00:00:00 2001 From: "Cloyce D. Spradling" Date: Thu, 2 Mar 2023 09:23:34 -0800 Subject: [PATCH] Enable consteval for Xcode 14.0.1 and later --- include/fmt/core.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 6c9d968bbc961..1abda62c406b1 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -259,10 +259,11 @@ #ifndef FMT_CONSTEVAL # if ((FMT_GCC_VERSION >= 1000 || FMT_CLANG_VERSION >= 1101) && \ - FMT_CPLUSPLUS >= 202002L && !defined(__apple_build_version__)) || \ + (!defined(__apple_build_version__) || __apple_build_version__ > 14000029L) && \ + FMT_CPLUSPLUS >= 202002L) || \ (defined(__cpp_consteval) && \ (!FMT_MSC_VERSION || _MSC_FULL_VER >= 193030704)) -// consteval is broken in MSVC before VS2022 and Apple clang 13. +// consteval is broken in MSVC before VS2022 and Apple clang before 14. # define FMT_CONSTEVAL consteval # define FMT_HAS_CONSTEVAL # else