diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2006-02-04 18:52:55 +0300 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2006-02-04 18:52:55 +0300 |
commit | e48ed941a0b5d846d837e24740151f710b7fa067 (patch) | |
tree | c851d3dda209c79e896e24a5a1f4b2677a04306d | |
parent | c0234bd9ecb0c7ab1065dfe4ebaf779fe8d99426 (diff) |
==SCons==
* If you set C_WARN=[] and CC_WARN=[] in your user-config.py, no complaints
whatsoever should show. Otherwise a lot of warnings are shown.
-rw-r--r-- | config/linux2-config.py | 4 | ||||
-rw-r--r-- | tools/Blender.py | 10 |
2 files changed, 8 insertions, 6 deletions
diff --git a/config/linux2-config.py b/config/linux2-config.py index 6d6ffe77257..18aea1e497c 100644 --- a/config/linux2-config.py +++ b/config/linux2-config.py @@ -114,8 +114,8 @@ CFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing'] CPPFLAGS = ['-DXP_UNIX'] CCFLAGS = ['-pipe','-fPIC','-funsigned-char','-fno-strict-aliasing'] -REL_CFLAGS = ' -O2 ' -REL_CCFLAGS = ' -O2 ' +REL_CFLAGS = ['-O2'] +REL_CCFLAGS = ['-O2'] ##BF_DEPEND = 'true' ## ##AR = ar diff --git a/tools/Blender.py b/tools/Blender.py index 11c5251a899..2c761ca4a18 100644 --- a/tools/Blender.py +++ b/tools/Blender.py @@ -274,14 +274,16 @@ class BlenderEnvironment(SConsEnvironment): if lenv['WITH_BF_GAMEENGINE']: lenv.Append(CPPDEFINES=['GAMEBLENDER=1']) if lenv['BF_DEBUG']: - lenv.Append(CCFLAGS = lenv['BF_DEBUG_FLAGS'], CXXFLAGS = lenv['BF_DEBUG_FLAGS']) + lenv.Append(CFLAGS = lenv['BF_DEBUG_FLAGS'], CCFLAGS = lenv['BF_DEBUG_FLAGS']) else: - lenv.Append(CCFLAGS = lenv['REL_CFLAGS'], CXXFLAGS = lenv['REL_CCFLAGS']) + lenv.Append(CFLAGS = lenv['REL_CFLAGS'], CCFLAGS = lenv['REL_CCFLAGS']) if lenv['BF_PROFILE']: - lenv.Append(CCFLAGS = lenv['BF_PROFILE_FLAGS'], CXXFLAGS = lenv['BF_PROFILE_FLAGS']) + lenv.Append(CFLAGS = lenv['BF_PROFILE_FLAGS'], CCFLAGS = lenv['BF_PROFILE_FLAGS']) if compileflags: + lenv.Append(CFLAGS = compileflags) lenv.Append(CCFLAGS = compileflags) - lenv.Append(CXXFLAGS = compileflags) + lenv.Append(CFLAGS = Split(lenv['C_WARN'])) + lenv.Append(CCFLAGS = Split(lenv['CC_WARN'])) lib = lenv.Library(target= '#'+root_build_dir+'lib/'+libname, source=sources) SConsEnvironment.Default(self, lib) # we add to default target, because this way we get some kind of progress info during build else: |