X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senfscons%2FSENFSCons.py;h=b6703edd4c4be01ac3e27c7dcadb3a153c6af4fb;hb=51044eb18f034c1a059ffe2fb109a422c1cbe251;hp=b6e1c0ec5b99dc0fc1ebac5e59504f4e2c0d8e2e;hpb=77191ea0291fb6c2ad0a472c83258722bf221f8f;p=senf.git diff --git a/senfscons/SENFSCons.py b/senfscons/SENFSCons.py index b6e1c0e..b6703ed 100644 --- a/senfscons/SENFSCons.py +++ b/senfscons/SENFSCons.py @@ -218,11 +218,12 @@ def MakeEnvironment(): global opts, finalizers InitOpts() env = SCons.Environment.Environment(options=opts) - for opt in opts.options: - if SCons.Script.SConscript.Arguments.get(opt.key): - env[opt.key] = SCons.Script.SConscript.Arguments.get(opt.key) - if SCons.Script.SConscript.Arguments.get('final'): - env['final'] = 1 + env.Replace(**SCons.Script.SConscript.Arguments) + #for opt in opts.options: + # if SCons.Script.SConscript.Arguments.get(opt.key): + # env[opt.key] = SCons.Script.SConscript.Arguments.get(opt.key) + #if SCons.Script.SConscript.Arguments.get('final'): + # env['final'] = 1 env.Help("\nSupported build variables (either in SConfig or on the command line:\n") env.Help(opts.GenerateHelpText(env)) @@ -246,7 +247,7 @@ def MakeEnvironment(): if env['final']: env.Append(CXXFLAGS = [ '-O3' ], - CPPDEFINES = [ 'NDEBUG' ]) + CPPDEFINES = [ 'SENF_NO_DEBUG' ]) else: env.Append(CXXFLAGS = [ '-O0', '-g', '-fno-inline' ], # The boost-regex library is not compiled with _GLIBCXX_DEBUG so this fails.