mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-12-07 18:38:30 +00:00
Sync changes from SourceMod's bootstrap script.
This commit is contained in:
parent
e0ad9f563a
commit
0c8b046cad
@ -27,20 +27,19 @@ chdir('OUTPUT');
|
|||||||
my ($result, $argn);
|
my ($result, $argn);
|
||||||
$argn = $#ARGV + 1;
|
$argn = $#ARGV + 1;
|
||||||
print "Attempting to reconfigure...\n";
|
print "Attempting to reconfigure...\n";
|
||||||
|
my $conf_args = '--enable-optimize --no-color --symbol-files';
|
||||||
if ($argn > 0 && $^O !~ /MSWin/) {
|
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 $conf_args`;
|
||||||
} else {
|
} else {
|
||||||
if ($^O eq "linux") {
|
if ($^O =~ /MSWin/) {
|
||||||
$result = `CC=gcc-4.4 CXX="gcc-4.4 -fno-exceptions -fno-rtti" python ../build/configure.py --enable-optimize`;
|
$result = `C:\\Python27\\Python.exe ..\\build\\configure.py $conf_args`;
|
||||||
} elsif ($^O eq "darwin") {
|
|
||||||
$result = `CC=clang CXX=clang python ../build/configure.py --enable-optimize`;
|
|
||||||
} else {
|
} else {
|
||||||
$result = `C:\\Python27\\Python.exe ..\\build\\configure.py --enable-optimize`;
|
$result = `CC=clang CXX=clang python ../build/configure.py $conf_args`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print "$result\n";
|
print "$result\n";
|
||||||
if ($? != 0) {
|
if ($? != 0) {
|
||||||
die('Could not configure!');
|
die("Could not configure: $!\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
sub IsNewer
|
sub IsNewer
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user