mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:34:57 +00:00
AK: Update clang workaround for consteval StringView literals
The underlying issue was fixed in clang-15. See:
a4f8590247
However, Apple and BSD distributions do not yet have this patch.
This commit is contained in:
parent
9f907ebb43
commit
2714f99c1c
1 changed files with 4 additions and 3 deletions
|
@ -371,9 +371,10 @@ struct CaseInsensitiveASCIIStringViewTraits : public Traits<StringView> {
|
|||
|
||||
}
|
||||
|
||||
// FIXME: Remove this when clang fully supports consteval (specifically in the context of default parameter initialization).
|
||||
// See: https://stackoverflow.com/questions/68789984/immediate-function-as-default-function-argument-initializer-in-clang
|
||||
#if defined(AK_COMPILER_CLANG)
|
||||
// FIXME: Remove this when clang on BSD distributions fully support consteval (specifically in the context of default parameter initialization).
|
||||
// Note that this is fixed in clang-15, but is not yet picked up by all downstream distributions.
|
||||
// See: https://github.com/llvm/llvm-project/issues/48230
|
||||
#if defined(AK_OS_BSD_GENERIC)
|
||||
# define AK_STRING_VIEW_LITERAL_CONSTEVAL constexpr
|
||||
#else
|
||||
# define AK_STRING_VIEW_LITERAL_CONSTEVAL consteval
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue