X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=SConstruct;h=0e0f4d7d2e9aa107bfd30548e953bcc7882a9c3b;hb=10985d71f77b627bc4da543d7114feb7c4529329;hp=19eadb3de4709b98ec2c00e96295a26fb0dac729;hpb=408efb5a03252b4a278f69ab9bc588af438c55de;p=senf.git diff --git a/SConstruct b/SConstruct index 19eadb3..0e0f4d7 100644 --- a/SConstruct +++ b/SConstruct @@ -140,8 +140,20 @@ if not logname: def configFilesOpts(target, source, env, for_signature): return [ '-I%s' % os.path.split(f)[1] for f in env['LOCAL_CONFIG_FILES'] ] +# Options used to debug inlining: +# +# INLINE_OPTS = [ '-finline-limit=20000', '--param','large-function-growth=10000', +# '--param', 'large-function-insns=10000', '--param','inline-unit-growth=10000', +# '-fvisibility-inlines-hidden', '-fno-inline-functions', '-Winline' ] +# +# BEWARE: You need lots of ram to compile with these settings (approx 1G) +# + +INLINE_OPTS = [ '-finline-limit=5000' ] + env.Append( CPPPATH = [ '#/include' ], + CXXFLAGS = [ '-Wall', '-Woverloaded-virtual', '-Wno-long-long' ] + INLINE_OPTS, LIBS = [ 'readline', 'rt', '$BOOSTREGEXLIB', '$BOOSTIOSTREAMSLIB' ], TEST_EXTRA_LIBS = [ '$BOOSTFSLIB' ], DOXY_XREF_TYPES = [ 'bug', 'fixme', 'todo', 'idea' ],