mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-02-22 15:54:14 +01:00
Force reconfigures to happen every time.
This commit is contained in:
parent
39d8d71b54
commit
4cafc6206a
@ -22,13 +22,14 @@ my $reconf = 0;
|
|||||||
if (!(-f 'OUTPUT/.ambuild2/graph') || !(-f 'OUTPUT/.ambuild2/vars')) {
|
if (!(-f 'OUTPUT/.ambuild2/graph') || !(-f 'OUTPUT/.ambuild2/vars')) {
|
||||||
rmtree('OUTPUT');
|
rmtree('OUTPUT');
|
||||||
mkdir('OUTPUT') or die("Failed to create output folder: $!\n");
|
mkdir('OUTPUT') or die("Failed to create output folder: $!\n");
|
||||||
chdir('OUTPUT');
|
}
|
||||||
my ($result, $argn);
|
chdir('OUTPUT');
|
||||||
$argn = $#ARGV + 1;
|
my ($result, $argn);
|
||||||
print "Attempting to reconfigure...\n";
|
$argn = $#ARGV + 1;
|
||||||
if ($argn > 0 && $^O !~ /MSWin/) {
|
print "Attempting to reconfigure...\n";
|
||||||
|
if ($argn > 0 && $^O !~ /MSWin/) {
|
||||||
$result = `CC=$ARGV[0] CXX=$ARGV[0] python ../build/configure.py --enable-optimize`;
|
$result = `CC=$ARGV[0] CXX=$ARGV[0] python ../build/configure.py --enable-optimize`;
|
||||||
} else {
|
} else {
|
||||||
if ($^O eq "linux") {
|
if ($^O eq "linux") {
|
||||||
$result = `CC=gcc-4.4 CXX="gcc-4.4 -fno-exceptions -fno-rtti" python ../build/configure.py --enable-optimize`;
|
$result = `CC=gcc-4.4 CXX="gcc-4.4 -fno-exceptions -fno-rtti" python ../build/configure.py --enable-optimize`;
|
||||||
} elsif ($^O eq "darwin") {
|
} elsif ($^O eq "darwin") {
|
||||||
@ -36,11 +37,10 @@ if (!(-f 'OUTPUT/.ambuild2/graph') || !(-f 'OUTPUT/.ambuild2/vars')) {
|
|||||||
} else {
|
} else {
|
||||||
$result = `C:\\Python27\\Python.exe ..\\build\\configure.py --enable-optimize`;
|
$result = `C:\\Python27\\Python.exe ..\\build\\configure.py --enable-optimize`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print "$result\n";
|
print "$result\n";
|
||||||
if ($? != 0) {
|
if ($? != 0) {
|
||||||
die('Could not configure!');
|
die('Could not configure!');
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub IsNewer
|
sub IsNewer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user