Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/Blender.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/tools/Blender.py b/tools/Blender.py
index 87181b7dc0d..8f102d00e20 100644
--- a/tools/Blender.py
+++ b/tools/Blender.py
@@ -387,12 +387,18 @@ class BlenderEnvironment(SConsEnvironment):
lenv.Append(CPPDEFINES=defines)
if lenv['WITH_BF_GAMEENGINE']:
lenv.Append(CPPDEFINES=['GAMEBLENDER=1'])
+ # debug or not
+ # CXXFLAGS defaults to CCFLAGS, therefore
+ # we Replace() rather than Append() to CXXFLAGS the first time
if lenv['BF_DEBUG'] or (libname in quickdebug):
- lenv.Append(CCFLAGS = Split(lenv['BF_DEBUG_FLAGS']), CXXFLAGS = Split(lenv['BF_DEBUG_FLAGS']))
+ lenv.Append(CCFLAGS = Split(lenv['BF_DEBUG_FLAGS']))
+ lenv.Replace( CXXFLAGS = Split(lenv['BF_DEBUG_FLAGS']))
else:
- lenv.Append(CCFLAGS = lenv['REL_CFLAGS'], CXXFLAGS = lenv['REL_CCFLAGS'])
+ lenv.Append(CCFLAGS = lenv['REL_CFLAGS'])
+ lenv.Replace(CXXFLAGS = lenv['REL_CCFLAGS'])
if lenv['BF_PROFILE']:
- lenv.Append(CCFLAGS = Split(lenv['BF_PROFILE_FLAGS']), CXXFLAGS = Split(lenv['BF_PROFILE_FLAGS']))
+ lenv.Append(CCFLAGS = Split(lenv['BF_PROFILE_FLAGS']),
+ CXXFLAGS = Split(lenv['BF_PROFILE_FLAGS']))
if compileflags:
lenv.Append(CCFLAGS = compileflags)
lenv.Append(CXXFLAGS = compileflags)