mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:07:45 +00: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;
|
class StringData;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: Remove this when Apple Clang and OpenBSD Clang fully supports consteval.
|
// FIXME: Remove this when OpenBSD Clang fully supports consteval.
|
||||||
#if defined(AK_OS_MACOS) || defined(AK_OS_OPENBSD)
|
#if defined(AK_OS_OPENBSD)
|
||||||
# define AK_SHORT_STRING_CONSTEVAL constexpr
|
# define AK_SHORT_STRING_CONSTEVAL constexpr
|
||||||
#else
|
#else
|
||||||
# define AK_SHORT_STRING_CONSTEVAL consteval
|
# define AK_SHORT_STRING_CONSTEVAL consteval
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue