mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-22 17:31:58 -05:00
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.
This commit is contained in:
parent
872e18f660
commit
d6b786b3fe
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue