2008-11-18 10:22:50 +01:00
|
|
|
#!/usr/bin/perl
|
2010-05-14 07:34:36 +02:00
|
|
|
# vim: set ts=2 sw=2 tw=99 noet:
|
2008-11-18 10:22:50 +01:00
|
|
|
|
|
|
|
use File::Basename;
|
|
|
|
|
|
|
|
my ($myself, $path) = fileparse($0);
|
|
|
|
chdir($path);
|
|
|
|
|
2022-06-24 16:12:16 +02:00
|
|
|
use FindBin;
|
|
|
|
use lib $FindBin::Bin;
|
2008-11-18 10:22:50 +01:00
|
|
|
require 'helpers.pm';
|
|
|
|
|
2010-05-14 07:34:36 +02:00
|
|
|
chdir('../../../OUTPUT');
|
2008-11-18 10:22:50 +01:00
|
|
|
|
2013-12-11 08:51:44 +01:00
|
|
|
my $argn = $#ARGV + 1;
|
|
|
|
if ($argn > 0) {
|
|
|
|
$ENV{CC} = $ARGV[0];
|
|
|
|
$ENV{CXX} = $ARGV[0];
|
|
|
|
}
|
|
|
|
|
2020-08-19 23:59:39 +02:00
|
|
|
if ($^O !~ /MSWin/) {
|
|
|
|
system("ambuild --no-color 2>&1");
|
|
|
|
} else {
|
|
|
|
system("C:\\Python38\\scripts\\ambuild --no-color 2>&1");
|
|
|
|
}
|
2008-11-18 10:22:50 +01:00
|
|
|
|
2010-05-14 07:34:36 +02:00
|
|
|
if ($? != 0)
|
2008-11-18 10:22:50 +01:00
|
|
|
{
|
2010-05-14 07:34:36 +02:00
|
|
|
die "Build failed: $!\n";
|
2008-11-18 11:21:53 +01:00
|
|
|
}
|
2010-05-14 07:34:36 +02:00
|
|
|
else
|
2008-11-18 10:22:50 +01:00
|
|
|
{
|
2010-05-14 07:34:36 +02:00
|
|
|
exit(0);
|
2008-11-18 10:22:50 +01:00
|
|
|
}
|
|
|
|
|