diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-02 16:04:51 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-02 16:04:51 +0000 |
commit | 977b644427f5157e3c5672e77d63f1f337c91fd9 (patch) | |
tree | 9aedee32496cd9b6955ca629ccf13321b39ca4d5 | |
parent | 37e908a6f0cc63ed812892435c2cdea88fba45e1 (diff) | |
download | bcm5719-llvm-977b644427f5157e3c5672e77d63f1f337c91fd9.tar.gz bcm5719-llvm-977b644427f5157e3c5672e77d63f1f337c91fd9.zip |
Implemented "-k" support.
llvm-svn: 49090
-rwxr-xr-x | clang/utils/scan-build | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/clang/utils/scan-build b/clang/utils/scan-build index aef4e67fb56..01e30997e6d 100755 --- a/clang/utils/scan-build +++ b/clang/utils/scan-build @@ -148,17 +148,25 @@ sub Postprocess { 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 @@ if ($Verbose >= 2) { # Run the build. -RunBuildCommand(\@ARGV); +RunBuildCommand(\@ARGV, $IgnoreErrors); # Postprocess the HTML directory. |