2010-04-05 03:07:37 +04:00
|
|
|
#!/usr/bin/perl
|
|
|
|
|
|
|
|
use File::Basename;
|
|
|
|
|
|
|
|
my ($myself, $path) = fileparse($0);
|
|
|
|
chdir($path);
|
|
|
|
|
|
|
|
require 'helpers.pm';
|
|
|
|
|
2014-02-09 09:45:40 +04:00
|
|
|
chdir('../../../OUTPUT');
|
2010-04-05 03:07:37 +04:00
|
|
|
|
2014-02-09 09:23:02 +04:00
|
|
|
my $argn = $#ARGV + 1;
|
|
|
|
if ($argn > 0) {
|
|
|
|
$ENV{CC} = $ARGV[0];
|
|
|
|
$ENV{CXX} = $ARGV[0];
|
2010-04-05 03:32:15 +04:00
|
|
|
}
|
2010-04-05 03:07:37 +04:00
|
|
|
|
2021-02-11 00:32:02 +03:00
|
|
|
if ($^O !~ /MSWin/) {
|
|
|
|
system("ambuild --no-color 2>&1");
|
|
|
|
} else {
|
|
|
|
system("C:\\Python38\\scripts\\ambuild --no-color 2>&1");
|
|
|
|
}
|
2014-02-09 09:23:02 +04:00
|
|
|
|
|
|
|
if ($? != 0)
|
|
|
|
{
|
|
|
|
die "Build failed: $!\n";
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2010-04-05 03:32:15 +04:00
|
|
|
exit(0);
|
|
|
|
}
|
2010-04-05 03:07:37 +04:00
|
|
|
|