0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-17 09:28:21 +02:00

configure: Increase inlining threshold for spirit grammar units.

configure: Move -fno-var-tracking to GCC only.
This commit is contained in:
Jason Volk 2020-07-19 22:47:49 -07:00
parent d3007544e9
commit 3f7d628a68

View file

@ -2369,10 +2369,20 @@ SPIRIT_UNIT_CPPFLAGS+=" $BOOST_CPPFLAGS"
SPIRIT_UNIT_CPPFLAGS+=" -include ircd/spirit.h"
AC_SUBST(SPIRIT_UNIT_CXXFLAGS)
SPIRIT_UNIT_CXXFLAGS+=" -fno-var-tracking"
dnl Slightly more aggressive than the default of 250. A large number of
dnl internal functions are generated out of some grammars at the default.
dnl The more aggressive value embeds rules together for optimization but
dnl may generate slightly larger functions.
AM_COND_IF([CLANG],
[
SPIRIT_UNIT_CXXFLAGS+=" -mllvm -inlinehint-threshold=1000"
SPIRIT_UNIT_CXXFLAGS+=" -mllvm -inline-threshold=400"
])
AM_COND_IF([GCC],
[
SPIRIT_UNIT_CXXFLAGS+=" -fno-var-tracking"
SPIRIT_UNIT_CXXFLAGS+=" -fno-var-tracking-assignments"
SPIRIT_UNIT_CXXFLAGS+=" -femit-struct-debug-baseonly"