mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
AK: Re-enable consteval StringView literal workaround for oss-fuzz
oss-fuzz ships a pre-release commit of clang-15 for all of their build bots. Until they update to a release of clang-15 that includes the fix for this bug, or a later release, we need to keep the workaround in place.
This commit is contained in:
parent
9cb4fe6a6f
commit
02b74e5a70
Notes:
sideshowbarker
2024-07-17 02:42:21 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/02b74e5a70 Pull-request: https://github.com/SerenityOS/serenity/pull/19678
1 changed files with 3 additions and 1 deletions
|
@ -374,7 +374,9 @@ struct CaseInsensitiveASCIIStringViewTraits : public Traits<StringView> {
|
||||||
// FIXME: Remove this when clang on BSD distributions fully support consteval (specifically in the context of default parameter initialization).
|
// 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.
|
// 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
|
// See: https://github.com/llvm/llvm-project/issues/48230
|
||||||
#if defined(AK_OS_BSD_GENERIC)
|
// Additionally, oss-fuzz currently ships an llvm-project commit that is a pre-release of 15.0.0.
|
||||||
|
// See: https://github.com/google/oss-fuzz/issues/9989
|
||||||
|
#if defined(AK_OS_BSD_GENERIC) or defined(OSS_FUZZ)
|
||||||
# define AK_STRING_VIEW_LITERAL_CONSTEVAL constexpr
|
# define AK_STRING_VIEW_LITERAL_CONSTEVAL constexpr
|
||||||
#else
|
#else
|
||||||
# define AK_STRING_VIEW_LITERAL_CONSTEVAL consteval
|
# define AK_STRING_VIEW_LITERAL_CONSTEVAL consteval
|
||||||
|
|
Loading…
Reference in a new issue