mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-02-20 13:54:14 +01:00
De-hardcode Python 3.
This commit is contained in:
parent
e9a426ca46
commit
c919da095e
@ -27,12 +27,12 @@ if (!(-f 'OUTPUT/.ambuild2/graph')) {
|
||||
$argn = $#ARGV + 1;
|
||||
print "Attempting to reconfigure...\n";
|
||||
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 {
|
||||
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") {
|
||||
$result = `CC=clang CXX=clang python3 ../build/configure.py --enable-optimize`;
|
||||
$result = `CC=clang CXX=clang python ../build/configure.py --enable-optimize`;
|
||||
} else {
|
||||
$result = `C:\\Python27\\Python.exe ..\\build\\configure.py --enable-optimize`;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user