Switch bootstrap.pl and startbuild.pl to AMBuild.

Former-commit-id: 462765c926139c44a1c2922e0281b4653fad783a
This commit is contained in:
David Anderson
2014-02-08 21:23:02 -08:00
parent f0f319a418
commit 426771deda
2 changed files with 48 additions and 55 deletions

View File

@@ -7,19 +7,22 @@ chdir($path);
require 'helpers.pm';
chdir('../../installer/builder');
chdir('../../OUTPUT');
my $output;
if ($^O eq "linux" || $^O eq "darwin") {
$output = `mono builder.exe directions.info`;
} else {
$output = `builder.exe directions.info`;
my $argn = $#ARGV + 1;
if ($argn > 0) {
$ENV{CC} = $ARGV[0];
$ENV{CXX} = $ARGV[0];
}
print $output . "\n";
if (!($output =~ /Build succeeded/)) {
die "Build failed!\n";
} else {
system("ambuild --no-color 2>&1");
if ($? != 0)
{
die "Build failed: $!\n";
}
else
{
exit(0);
}