Switch bootstrap.pl and startbuild.pl to AMBuild.
Former-commit-id: 462765c926139c44a1c2922e0281b4653fad783a
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user