SConscript (9048:950298f29140) SConscript (9175:8083b5195207)
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 836 unchanged lines hidden (view full) ---

845
846 new_env = env.Clone(OBJSUFFIX=objsfx, SHOBJSUFFIX=objsfx + 's')
847 new_env.Label = label
848 new_env.Append(**kwargs)
849
850 swig_env = new_env.Clone()
851 swig_env.Append(CCFLAGS='-Werror')
852 if env['GCC']:
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 836 unchanged lines hidden (view full) ---

845
846 new_env = env.Clone(OBJSUFFIX=objsfx, SHOBJSUFFIX=objsfx + 's')
847 new_env.Label = label
848 new_env.Append(**kwargs)
849
850 swig_env = new_env.Clone()
851 swig_env.Append(CCFLAGS='-Werror')
852 if env['GCC']:
853 swig_env.Append(CCFLAGS='-Wno-uninitialized')
854 swig_env.Append(CCFLAGS='-Wno-sign-compare')
855 swig_env.Append(CCFLAGS='-Wno-parentheses')
856 swig_env.Append(CCFLAGS='-Wno-unused-label')
853 swig_env.Append(CCFLAGS=['-Wno-uninitialized', '-Wno-sign-compare',
854 '-Wno-parentheses', '-Wno-unused-label',
855 '-Wno-unused-value'])
857 if compareVersions(env['GCC_VERSION'], '4.6') >= 0:
858 swig_env.Append(CCFLAGS='-Wno-unused-but-set-variable')
859 if env['CLANG']:
856 if compareVersions(env['GCC_VERSION'], '4.6') >= 0:
857 swig_env.Append(CCFLAGS='-Wno-unused-but-set-variable')
858 if env['CLANG']:
860 swig_env.Append(CCFLAGS=['-Wno-unused-label'])
859 swig_env.Append(CCFLAGS=['-Wno-unused-label', '-Wno-unused-value'])
861
860
862
863 werror_env = new_env.Clone()
864 werror_env.Append(CCFLAGS='-Werror')
865
866 def make_obj(source, static, extra_deps = None):
867 '''This function adds the specified source to the correct
868 build environment, and returns the corresponding SCons Object
869 nodes'''
870

--- 143 unchanged lines hidden ---
861 werror_env = new_env.Clone()
862 werror_env.Append(CCFLAGS='-Werror')
863
864 def make_obj(source, static, extra_deps = None):
865 '''This function adds the specified source to the correct
866 build environment, and returns the corresponding SCons Object
867 nodes'''
868

--- 143 unchanged lines hidden ---