Skip to content

Commit

Permalink
Enable consteval for Xcode 14.0.1 and later
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloyce D. Spradling committed Mar 2, 2023
1 parent b94e101 commit 9d51824
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9d51824

Please sign in to comment.