1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-02-21 14:54:14 +01:00

De-hardcode Python 3.

This commit is contained in:
David Anderson 2013-11-18 09:52:47 -08:00
parent e9a426ca46
commit c919da095e

View File

@ -27,12 +27,12 @@ if (!(-f 'OUTPUT/.ambuild2/graph')) {
$argn = $#ARGV + 1; $argn = $#ARGV + 1;
print "Attempting to reconfigure...\n"; print "Attempting to reconfigure...\n";
if ($argn > 0 && $^O !~ /MSWin/) { if ($argn > 0 && $^O !~ /MSWin/) {
$result = `CC=$ARGV[0] CXX=$ARGV[0] python3 ../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 python3 ../build/configure.py --enable-optimize`; $result = `CC=gcc-4.4 CXX=gcc-4.4 python ../build/configure.py --enable-optimize`;
} elsif ($^O eq "darwin") { } elsif ($^O eq "darwin") {
$result = `CC=clang CXX=clang python3 ../build/configure.py --enable-optimize`; $result = `CC=clang CXX=clang python ../build/configure.py --enable-optimize`;
} else { } else {
$result = `C:\\Python27\\Python.exe ..\\build\\configure.py --enable-optimize`; $result = `C:\\Python27\\Python.exe ..\\build\\configure.py --enable-optimize`;
} }