AMBuildScript
changeset 3472 7c8bf140de6b
parent 3471 28726962259e
child 3477 8762e8fcbc50
     1.1 --- a/AMBuildScript	Wed Mar 21 21:27:26 2012 -0500
     1.2 +++ b/AMBuildScript	Wed Mar 21 21:35:07 2012 -0500
     1.3 @@ -122,6 +122,9 @@
     1.4  				self.compiler.AddToListVar('CXXFLAGS', '-fno-threadsafe-statics')
     1.5  				self.compiler.AddToListVar('CXXFLAGS', '-Wno-non-virtual-dtor')
     1.6  				self.compiler.AddToListVar('CXXFLAGS', '-Wno-overloaded-virtual')
     1.7 +				if (self.vendor == 'gcc' and cxx.majorVersion >= 4 and cxx.minorVersion >= 3) or \
     1.8 +						(self.vendor == 'clang' and cxx.majorVersion >= 3):
     1.9 +					self.compiler.AddToListVar('CXXFLAGS', '-Wno-delete-non-virtual-dtor')
    1.10  				self.compiler.AddToListVar('CDEFINES', 'HAVE_STDINT_H')
    1.11  				self.compiler.AddToListVar('CDEFINES', 'GNUC')
    1.12  				if self.vendor == 'gcc':