mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
ircd::spirit: Workarounds for clang-13.
This commit is contained in:
parent
35986844bb
commit
65322352b0
1 changed files with 4 additions and 0 deletions
|
@ -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 <boost/config.hpp>
|
||||
#include <boost/function.hpp>
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue