1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-11-28 10:24:20 +01:00

Force reconfigures to happen every time.

This commit is contained in:
Scott Ehlert 2014-05-17 16:11:02 -05:00
parent ea2727d6e0
commit e0ad9f563a

View File

@ -22,26 +22,26 @@ my $reconf = 0;
if (!(-f 'OUTPUT/.ambuild2/graph') || !(-f 'OUTPUT/.ambuild2/vars')) {
rmtree('OUTPUT');
mkdir('OUTPUT') or die("Failed to create output folder: $!\n");
chdir('OUTPUT');
my ($result, $argn);
$argn = $#ARGV + 1;
print "Attempting to reconfigure...\n";
if ($argn > 0 && $^O !~ /MSWin/) {
$result = `CC=$ARGV[0] CXX=$ARGV[0] python ../build/configure.py --enable-optimize`;
}
chdir('OUTPUT');
my ($result, $argn);
$argn = $#ARGV + 1;
print "Attempting to reconfigure...\n";
if ($argn > 0 && $^O !~ /MSWin/) {
$result = `CC=$ARGV[0] CXX=$ARGV[0] python ../build/configure.py --enable-optimize`;
} else {
if ($^O eq "linux") {
$result = `CC=gcc-4.4 CXX="gcc-4.4 -fno-exceptions -fno-rtti" python ../build/configure.py --enable-optimize`;
} elsif ($^O eq "darwin") {
$result = `CC=clang CXX=clang python ../build/configure.py --enable-optimize`;
} else {
if ($^O eq "linux") {
$result = `CC=gcc-4.4 CXX="gcc-4.4 -fno-exceptions -fno-rtti" python ../build/configure.py --enable-optimize`;
} elsif ($^O eq "darwin") {
$result = `CC=clang CXX=clang python ../build/configure.py --enable-optimize`;
} else {
$result = `C:\\Python27\\Python.exe ..\\build\\configure.py --enable-optimize`;
}
}
print "$result\n";
if ($? != 0) {
die('Could not configure!');
$result = `C:\\Python27\\Python.exe ..\\build\\configure.py --enable-optimize`;
}
}
print "$result\n";
if ($? != 0) {
die('Could not configure!');
}
sub IsNewer
{