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
--- 926 unchanged lines hidden (view full) ---
935 if compareVersions(env['GCC_VERSION'], '4.7') >= 0:
936 new_env.Append(CXXFLAGS='-Wdelete-non-virtual-dtor')
937 swig_env.Append(CCFLAGS='-Wno-maybe-uninitialized')
938 if env['CLANG']:
939 # Always enable the warning for deletion of derived classes
940 # with non-virtual destructors
941 new_env.Append(CXXFLAGS=['-Wdelete-non-virtual-dtor'])
942
943 werror_env = new_env.Clone()
944 werror_env.Append(CCFLAGS='-Werror')
945
946 def make_obj(source, static, extra_deps = None):
947 '''This function adds the specified source to the correct
948 build environment, and returns the corresponding SCons Object
949 nodes'''
950
--- 203 unchanged lines hidden ---
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
--- 926 unchanged lines hidden (view full) ---
935 if compareVersions(env['GCC_VERSION'], '4.7') >= 0:
936 new_env.Append(CXXFLAGS='-Wdelete-non-virtual-dtor')
937 swig_env.Append(CCFLAGS='-Wno-maybe-uninitialized')
938 if env['CLANG']:
939 # Always enable the warning for deletion of derived classes
940 # with non-virtual destructors
941 new_env.Append(CXXFLAGS=['-Wdelete-non-virtual-dtor'])
942
943 werror_env = new_env.Clone()
944 werror_env.Append(CCFLAGS='-Werror')
945
946 def make_obj(source, static, extra_deps = None):
947 '''This function adds the specified source to the correct
948 build environment, and returns the corresponding SCons Object
949 nodes'''
950
--- 203 unchanged lines hidden ---