[cfe-commits] r49090 - /cfe/trunk/utils/scan-build
Ted Kremenek
kremenek at apple.com
Wed Apr 2 09:04:54 PDT 2008
Author: kremenek
Date: Wed Apr 2 11:04:51 2008
New Revision: 49090
URL: http://llvm.org/viewvc/llvm-project?rev=49090&view=rev
Log:
Implemented "-k" support.
Modified:
cfe/trunk/utils/scan-build
Modified: cfe/trunk/utils/scan-build
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/scan-build?rev=49090&r1=49089&r2=49090&view=diff
==============================================================================
--- cfe/trunk/utils/scan-build (original)
+++ cfe/trunk/utils/scan-build Wed Apr 2 11:04:51 2008
@@ -148,17 +148,25 @@
sub RunBuildCommand {
my $Args = shift;
+ my $IgnoreErrors = shift;
my $Cmd = $Args->[0];
if ($Cmd eq "gcc" or $Cmd eq "cc" or $Cmd eq "llvm-gcc") {
shift @$Args;
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);
}
-
##----------------------------------------------------------------------------##
# DisplayHelp - Utility function to display all help options.
##----------------------------------------------------------------------------##
@@ -288,7 +296,7 @@
# Run the build.
-RunBuildCommand(\@ARGV);
+RunBuildCommand(\@ARGV, $IgnoreErrors);
# Postprocess the HTML directory.
More information about the cfe-commits
mailing list