diff --git a/AMBuildScript b/AMBuildScript index 1b4fa965..02921000 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -122,6 +122,9 @@ class SM: self.compiler.AddToListVar('CXXFLAGS', '-fno-threadsafe-statics') self.compiler.AddToListVar('CXXFLAGS', '-Wno-non-virtual-dtor') self.compiler.AddToListVar('CXXFLAGS', '-Wno-overloaded-virtual') + if (self.vendor == 'gcc' and cxx.majorVersion >= 4 and cxx.minorVersion >= 3) or \ + (self.vendor == 'clang' and cxx.majorVersion >= 3): + self.compiler.AddToListVar('CXXFLAGS', '-Wno-delete-non-virtual-dtor') self.compiler.AddToListVar('CDEFINES', 'HAVE_STDINT_H') self.compiler.AddToListVar('CDEFINES', 'GNUC') if self.vendor == 'gcc': diff --git a/tools/buildbot/bootstrap.pl b/tools/buildbot/bootstrap.pl index 63f2b655..d5dc317b 100755 --- a/tools/buildbot/bootstrap.pl +++ b/tools/buildbot/bootstrap.pl @@ -47,12 +47,12 @@ if ($reconf) { $argn = $#ARGV + 1; print "Attempting to reconfigure...\n"; if ($argn > 0 && $^O !~ /MSWin/) { - $result = `CC=$ARGV[0] CXX=$ARGV[0] python3.1 ../build/configure.py --enable-optimize`; + $result = `CC=$ARGV[0] CXX=$ARGV[0] python3 ../build/configure.py --enable-optimize`; } else { if ($^O eq "linux") { - $result = `CC=gcc-4.4 CXX=gcc-4.4 python3.1 ../build/configure.py --enable-optimize`; + $result = `CC=gcc-4.4 CXX=gcc-4.4 python3 ../build/configure.py --enable-optimize`; } elsif ($^O eq "darwin") { - $result = `CC=gcc-4.2 CXX=gcc-4.2 python3.1 ../build/configure.py --enable-optimize`; + $result = `CC=clang CXX=clang python3 ../build/configure.py --enable-optimize`; } else { $result = `C:\\Python31\\Python.exe ..\\build\\configure.py --enable-optimize`; } diff --git a/tools/buildbot/startbuild.pl b/tools/buildbot/startbuild.pl index e6126065..7d6a3128 100755 --- a/tools/buildbot/startbuild.pl +++ b/tools/buildbot/startbuild.pl @@ -11,7 +11,7 @@ require 'helpers.pm'; chdir('../../../OUTPUT'); if ($^O eq "linux" || $^O eq "darwin") { - system("python3.1 build.py 2>&1"); + system("python3 build.py 2>&1"); } else { system("C:\\Python31\\python.exe build.py 2>&1"); }