scons: pass boost version through env
This commit is contained in:
parent
520f36938f
commit
9b859bbc81
1 changed files with 5 additions and 6 deletions
|
@ -424,7 +424,8 @@ pickle_store = [# Scons internal variables
|
||||||
'CAIROMM_LINKFLAGS',
|
'CAIROMM_LINKFLAGS',
|
||||||
'CAIROMM_CPPPATHS',
|
'CAIROMM_CPPPATHS',
|
||||||
'SVG_RENDERER',
|
'SVG_RENDERER',
|
||||||
'SQLITE_LINKFLAGS'
|
'SQLITE_LINKFLAGS',
|
||||||
|
'BOOST_LIB_VERSION_FROM_HEADER'
|
||||||
]
|
]
|
||||||
|
|
||||||
# Add all other user configurable options to pickle pickle_store
|
# Add all other user configurable options to pickle pickle_store
|
||||||
|
@ -1115,10 +1116,7 @@ if not preconfigured:
|
||||||
|
|
||||||
conf.FindBoost(BOOST_SEARCH_PREFIXES,thread_flag)
|
conf.FindBoost(BOOST_SEARCH_PREFIXES,thread_flag)
|
||||||
|
|
||||||
boost_lib_version_from_header = conf.GetBoostLibVersion()
|
env['BOOST_LIB_VERSION_FROM_HEADER'] = conf.GetBoostLibVersion()
|
||||||
if boost_lib_version_from_header:
|
|
||||||
boost_version_from_header = int(boost_lib_version_from_header.split('_')[1])
|
|
||||||
|
|
||||||
|
|
||||||
# The other required boost headers.
|
# The other required boost headers.
|
||||||
BOOST_LIBSHEADERS = [
|
BOOST_LIBSHEADERS = [
|
||||||
|
@ -1432,6 +1430,7 @@ if not preconfigured:
|
||||||
env.Append(CXXFLAGS = gcc_cxx_flags + '-O0 -fno-inline %s' % debug_flags)
|
env.Append(CXXFLAGS = gcc_cxx_flags + '-O0 -fno-inline %s' % debug_flags)
|
||||||
else:
|
else:
|
||||||
env.Append(CXXFLAGS = gcc_cxx_flags + '-O%s -finline-functions -Wno-inline -Wno-parentheses -Wno-char-subscripts %s' % (env['OPTIMIZATION'],ndebug_flags))
|
env.Append(CXXFLAGS = gcc_cxx_flags + '-O%s -finline-functions -Wno-inline -Wno-parentheses -Wno-char-subscripts %s' % (env['OPTIMIZATION'],ndebug_flags))
|
||||||
|
|
||||||
if env['DEBUG_UNDEFINED']:
|
if env['DEBUG_UNDEFINED']:
|
||||||
env.Append(CXXFLAGS = '-fcatch-undefined-behavior') #-ftrapv -fwrapv
|
env.Append(CXXFLAGS = '-fcatch-undefined-behavior') #-ftrapv -fwrapv
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue