From 9e4db0781f3fa4bcfd35709f1b6b93fdadc0a6d3 Mon Sep 17 00:00:00 2001 From: sbund <sbund@wiback.org> Date: Fri, 1 Sep 2006 12:50:43 +0000 Subject: [PATCH] Add NDEBUG to final build --- satscons/SatSCons.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/satscons/SatSCons.py b/satscons/SatSCons.py index fee39537..3fd9a908 100644 --- a/satscons/SatSCons.py +++ b/satscons/SatSCons.py @@ -37,7 +37,7 @@ def FinalizeBoost(env): env.Append(LIBPATH = [ '$BOOST_LIBDIR' ], CPPPATH = [ '$BOOST_INCLUDES' ]) - + def UseSTLPort(): global opts InitOpts() @@ -80,13 +80,13 @@ def MakeEnvironment(): finalizer(env) env.Append(CXXFLAGS = [ '-Wall', '-Woverloaded-virtual', '-Wno-long-long', - '-pedantic', '-ansi' ], + '-pedantic', '-ansi' ], LOCALLIBDIR = [ '#' ], LIBPATH = [ '$LOCALLIBDIR' ]) if env['final']: - env.Append(CXXFLAGS = [ '-O3', '-g' ], - LINKFLAGS = [ '-g' ]) + env.Append(CXXFLAGS = [ '-O3' ], + CPPDEFINES = [ 'NDEBUG' ]) else: env.Append(CXXFLAGS = [ '-O0', '-g', '-fno-inline' ], LINKFLAGS = [ '-g' ]) -- GitLab