diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/Blender.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/Blender.py b/tools/Blender.py index 601d3c3000d..a3452f4d593 100644 --- a/tools/Blender.py +++ b/tools/Blender.py @@ -391,12 +391,13 @@ class BlenderEnvironment(SConsEnvironment): # debug or not # CXXFLAGS defaults to CCFLAGS, therefore # we Replace() rather than Append() to CXXFLAGS the first time + lenv.Replace(CXXFLAGS = lenv['CCFLAGS']) if lenv['BF_DEBUG'] or (libname in quickdebug): lenv.Append(CCFLAGS = Split(lenv['BF_DEBUG_FLAGS'])) - lenv.Replace( CXXFLAGS = Split(lenv['BF_DEBUG_FLAGS'])) + lenv.Append( CXXFLAGS = Split(lenv['BF_DEBUG_FLAGS'])) else: lenv.Append(CCFLAGS = lenv['REL_CFLAGS']) - lenv.Replace(CXXFLAGS = lenv['REL_CCFLAGS']) + lenv.Append(CXXFLAGS = lenv['REL_CCFLAGS']) if lenv['BF_PROFILE']: lenv.Append(CCFLAGS = Split(lenv['BF_PROFILE_FLAGS']), CXXFLAGS = Split(lenv['BF_PROFILE_FLAGS'])) |