Skip to content
Permalink
Browse files
REGRESION(r288200): [GTK][WPE] Build broken on Ubuntu 18.04
https://bugs.webkit.org/show_bug.cgi?id=235401

Patch by Michael Catanzaro <mcatanzaro@gnome.org> on 2022-01-24
Reviewed by Adrian Perez de Castro.

This implements WTF_CRASH_UNDER_CONSTEXPR_CONTEXT() properly for compatibility with older
compilers.

* wtf/Assertions.h:


Canonical link: https://commits.webkit.org/246345@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288459 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
mcatanzaro authored and webkit-commit-queue committed Jan 24, 2022
1 parent 204525a commit be057683d4dd89ff3fd328477c603362c07a6943
Showing 2 changed files with 15 additions and 3 deletions.
@@ -1,3 +1,15 @@
2022-01-24 Michael Catanzaro <mcatanzaro@gnome.org>

REGRESION(r288200): [GTK][WPE] Build broken on Ubuntu 18.04
https://bugs.webkit.org/show_bug.cgi?id=235401

Reviewed by Adrian Perez de Castro.

This implements WTF_CRASH_UNDER_CONSTEXPR_CONTEXT() properly for compatibility with older
compilers.

* wtf/Assertions.h:

2022-01-24 Mark Lam <mark.lam@apple.com>

Add FixedVector::clear(), contains(), find(), and findMatching().
@@ -273,14 +273,14 @@ WTF_EXPORT_PRIVATE bool WTFIsDebuggerAttached(void);
#elif !ENABLE(DEVELOPER_MODE) && !OS(DARWIN)
#ifdef __cplusplus
#define CRASH() std::abort()
#define CRASH_UNDER_CONSTEXPR_CONTEXT() std::abort()
#define CRASH_UNDER_CONSTEXPR_CONTEXT() WTFBreakpointTrapUnderConstexprContext()
#else
#define CRASH() abort()
#define CRASH_UNDER_CONSTEXPR_CONTEXT() abort()
#define CRASH_UNDER_CONSTEXPR_CONTEXT() WTFBreakpointTrapUnderConstexprContext()
#endif // __cplusplus
#else
#define CRASH() WTFCrash()
#define CRASH_UNDER_CONSTEXPR_CONTEXT() WTFCrash()
#define CRASH_UNDER_CONSTEXPR_CONTEXT() WTFBreakpointTrapUnderConstexprContext()
#endif

#endif // !defined(CRASH)

0 comments on commit be05768

Please sign in to comment.