1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-01-19 08:52:34 +01:00

Updated buildbot scripts to support clang builders (bug 4897, r=dvander).

This commit is contained in:
Scott Ehlert 2011-04-30 22:41:54 -05:00
parent a601dced41
commit 31f85839e1
3 changed files with 20 additions and 7 deletions

View File

@ -98,6 +98,8 @@ class MMS:
if self.vendor == 'gcc':
self.compiler.AddToListVar('CFLAGS', '-mfpmath=sse')
self.compiler.AddToListVar('POSTLINKFLAGS', '-static-libgcc')
else:
self.compiler.AddToListVar('POSTLINKFLAGS', '-lgcc_eh')
elif isinstance(cxx, Cpp.MSVC):
self.vendor = 'msvc'
if AMBuild.options.debug == '1':

View File

@ -43,14 +43,19 @@ if ($reconf) {
rmtree('OUTPUT');
mkdir('OUTPUT') or die("Failed to create output folder: $!\n");
chdir('OUTPUT');
my ($result);
my ($result, $argn);
$argn = $#ARGV + 1;
print "Attempting to reconfigure...\n";
if ($^O eq "linux") {
$result = `CC=gcc-4.1 CXX=gcc-4.1 python3.1 ../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`;
if ($argn > 0 && $^O !~ /MSWin/) {
$result = `CC=$ARGV[0] CXX=$ARGV[0] python3.1 ../build/configure.py --enable-optimize`;
} else {
$result = `C:\\Python31\\Python.exe ..\\build\\configure.py --enable-optimize`;
if ($^O eq "linux") {
$result = `CC=gcc-4.1 CXX=gcc-4.1 python3.1 ../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`;
} else {
$result = `C:\\Python31\\Python.exe ..\\build\\configure.py --enable-optimize`;
}
}
print "$result\n";
if ($? != 0) {

View File

@ -5,9 +5,10 @@ use Cwd;
use File::Basename;
use Net::FTP;
my ($ftp_file, $ftp_host, $ftp_user, $ftp_pass, $ftp_path);
my ($ftp_file, $ftp_host, $ftp_user, $ftp_pass, $ftp_path, $tag);
$ftp_file = shift;
$tag = shift;
open(FTP, $ftp_file) or die "Unable to read FTP config file $ftp_file: $!\n";
$ftp_host = <FTP>;
@ -49,6 +50,11 @@ else
$version .= '-' . $^O;
}
if (defined $tag)
{
$version .= '-' . $tag;
}
my ($filename);
$filename = 'mmsource-' . $version;
if ($^O eq "linux")