[cfe-commits] r51883 - /cfe/trunk/utils/scan-build
Ted Kremenek
kremenek at apple.com
Mon Jun 2 14:52:47 PDT 2008
Author: kremenek
Date: Mon Jun 2 16:52:47 2008
New Revision: 51883
URL: http://llvm.org/viewvc/llvm-project?rev=51883&view=rev
Log:
Use the correct 'ccc-analyzer' when the build command is a direct invocation of gcc.
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=51883&r1=51882&r2=51883&view=diff
==============================================================================
--- cfe/trunk/utils/scan-build (original)
+++ cfe/trunk/utils/scan-build Mon Jun 2 16:52:47 2008
@@ -496,10 +496,11 @@
my $Args = shift;
my $IgnoreErrors = shift;
my $Cmd = $Args->[0];
+ my $CCAnalyzer = shift;
if ($Cmd eq "gcc" or $Cmd eq "cc" or $Cmd eq "llvm-gcc") {
shift @$Args;
- unshift @$Args, "ccc-analyzer"
+ unshift @$Args, $CCAnalyzer;
}
elsif ($IgnoreErrors) {
if ($Cmd eq "make" or $Cmd eq "gmake") {
@@ -715,7 +716,7 @@
# Run the build.
-RunBuildCommand(\@ARGV, $IgnoreErrors);
+RunBuildCommand(\@ARGV, $IgnoreErrors, $Cmd);
# Postprocess the HTML directory.
More information about the cfe-commits
mailing list