mirror of
https://github.com/matrix-construct/construct
synced 2024-09-27 19:28:52 +02:00
configure: Increase inlining threshold for spirit grammar units.
configure: Move -fno-var-tracking to GCC only.
This commit is contained in:
parent
d3007544e9
commit
3f7d628a68
1 changed files with 11 additions and 1 deletions
12
configure.ac
12
configure.ac
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue