parent
37e908a6f0
commit
977b644427
|
@ -148,17 +148,25 @@ sub Postprocess {
|
||||||
sub RunBuildCommand {
|
sub RunBuildCommand {
|
||||||
|
|
||||||
my $Args = shift;
|
my $Args = shift;
|
||||||
|
my $IgnoreErrors = shift;
|
||||||
my $Cmd = $Args->[0];
|
my $Cmd = $Args->[0];
|
||||||
|
|
||||||
if ($Cmd eq "gcc" or $Cmd eq "cc" or $Cmd eq "llvm-gcc") {
|
if ($Cmd eq "gcc" or $Cmd eq "cc" or $Cmd eq "llvm-gcc") {
|
||||||
shift @$Args;
|
shift @$Args;
|
||||||
unshift @$Args, "ccc-analyzer"
|
unshift @$Args, "ccc-analyzer"
|
||||||
}
|
}
|
||||||
|
elsif ($IgnoreErrors) {
|
||||||
|
if ($Cmd eq "make" or $Cmd eq "gmake") {
|
||||||
|
push @$Args, "-k";
|
||||||
|
}
|
||||||
|
elsif ($Cmd eq "xcodebuild") {
|
||||||
|
push @$Args, "-PBXBuildsContinueAfterErrors=YES";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
system(@$Args);
|
system(@$Args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
##----------------------------------------------------------------------------##
|
##----------------------------------------------------------------------------##
|
||||||
# DisplayHelp - Utility function to display all help options.
|
# DisplayHelp - Utility function to display all help options.
|
||||||
##----------------------------------------------------------------------------##
|
##----------------------------------------------------------------------------##
|
||||||
|
@ -288,7 +296,7 @@ if ($Verbose >= 2) {
|
||||||
|
|
||||||
# Run the build.
|
# Run the build.
|
||||||
|
|
||||||
RunBuildCommand(\@ARGV);
|
RunBuildCommand(\@ARGV, $IgnoreErrors);
|
||||||
|
|
||||||
# Postprocess the HTML directory.
|
# Postprocess the HTML directory.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue