SConscript (8614:2fc7787f47a9) SConscript (8656:44203702a57a)
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

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

846 new_env.Append(**kwargs)
847
848 swig_env = new_env.Clone()
849 swig_env.Append(CCFLAGS='-Werror')
850 if env['GCC']:
851 swig_env.Append(CCFLAGS='-Wno-uninitialized')
852 swig_env.Append(CCFLAGS='-Wno-sign-compare')
853 swig_env.Append(CCFLAGS='-Wno-parentheses')
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

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

846 new_env.Append(**kwargs)
847
848 swig_env = new_env.Clone()
849 swig_env.Append(CCFLAGS='-Werror')
850 if env['GCC']:
851 swig_env.Append(CCFLAGS='-Wno-uninitialized')
852 swig_env.Append(CCFLAGS='-Wno-sign-compare')
853 swig_env.Append(CCFLAGS='-Wno-parentheses')
854 swig_env.Append(CCFLAGS='-Wno-unused-label')
854 if compareVersions(env['GCC_VERSION'], '4.6.0') != -1:
855 if compareVersions(env['GCC_VERSION'], '4.6.0') != -1:
855 swig_env.Append(CCFLAGS='-Wno-unused-label')
856 swig_env.Append(CCFLAGS='-Wno-unused-but-set-variable')
857
858 werror_env = new_env.Clone()
859 werror_env.Append(CCFLAGS='-Werror')
860
861 def make_obj(source, static, extra_deps = None):
862 '''This function adds the specified source to the correct
863 build environment, and returns the corresponding SCons Object

--- 110 unchanged lines hidden ---
856 swig_env.Append(CCFLAGS='-Wno-unused-but-set-variable')
857
858 werror_env = new_env.Clone()
859 werror_env.Append(CCFLAGS='-Werror')
860
861 def make_obj(source, static, extra_deps = None):
862 '''This function adds the specified source to the correct
863 build environment, and returns the corresponding SCons Object

--- 110 unchanged lines hidden ---