Fix Windows build.

This commit is contained in:
David Anderson 2021-02-10 13:32:02 -08:00
parent a4e929eedc
commit 8c6b0f84bb
2 changed files with 6 additions and 2 deletions

View File

@ -32,7 +32,7 @@ if ($argn > 0 && $^O !~ /MSWin/) {
$result = `CC=$ARGV[0] CXX=$ARGV[0] python ../build/configure.py $conf_args`;
} else {
if ($^O =~ /MSWin/) {
$result = `C:\\Python27\\Python.exe ..\\build\\configure.py $conf_args`;
$result = `C:\\Python38\\Python.exe ..\\build\\configure.py $conf_args`;
} else {
$result = `CC=clang CXX=clang python ../build/configure.py $conf_args`;
}

View File

@ -15,7 +15,11 @@ if ($argn > 0) {
$ENV{CXX} = $ARGV[0];
}
system("ambuild --no-color 2>&1");
if ($^O !~ /MSWin/) {
system("ambuild --no-color 2>&1");
} else {
system("C:\\Python38\\scripts\\ambuild --no-color 2>&1");
}
if ($? != 0)
{