From 65322352b0d8ed946c37dfeb0bc421bce515e686 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 22 Dec 2021 11:02:10 -0800 Subject: [PATCH] ircd::spirit: Workarounds for clang-13. --- include/ircd/spirit/boost.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/ircd/spirit/boost.h b/include/ircd/spirit/boost.h index 12f6aeb28..c55ce25e1 100644 --- a/include/ircd/spirit/boost.h +++ b/include/ircd/spirit/boost.h @@ -22,8 +22,10 @@ // being a fraction of the generated code and the rest is invocation related // overhead. By force-flattening here we can allow each entry-point into // spirit to compose rules at once and eliminate the wrapping complex. +#if RB_CXX_EPOCH <= 12 // NOTE: disabled for crashing clang-13. #pragma clang attribute push ([[gnu::always_inline]], apply_to = function) #pragma clang attribute push ([[gnu::flatten]], apply_to = function) +#endif #include #include @@ -44,5 +46,7 @@ #include "char.h" #pragma GCC visibility pop +#if RB_CXX_EPOCH <= 12 #pragma clang attribute pop #pragma clang attribute pop +#endif