From d6b786b3fe76b9e256693205347c45472472782b Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Sun, 7 May 2023 12:49:37 -0400 Subject: [PATCH] AK: Use consteval String factories on macOS Xcode 14.3 ships with clang 15, which supports our usage of consteval to validate short strings at compile time. --- AK/String.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AK/String.h b/AK/String.h index b69cf95fd50..58047b4ebd3 100644 --- a/AK/String.h +++ b/AK/String.h @@ -29,8 +29,8 @@ namespace Detail { class StringData; } -// FIXME: Remove this when Apple Clang and OpenBSD Clang fully supports consteval. -#if defined(AK_OS_MACOS) || defined(AK_OS_OPENBSD) +// FIXME: Remove this when OpenBSD Clang fully supports consteval. +#if defined(AK_OS_OPENBSD) # define AK_SHORT_STRING_CONSTEVAL constexpr #else # define AK_SHORT_STRING_CONSTEVAL consteval