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