]> granicus.if.org Git - clang/commitdiff
Use the correct 'ccc-analyzer' when the build command is a direct invocation of gcc.
authorTed Kremenek <kremenek@apple.com>
Mon, 2 Jun 2008 21:52:47 +0000 (21:52 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 2 Jun 2008 21:52:47 +0000 (21:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51883 91177308-0d34-0410-b5e6-96231b3b80d8

utils/scan-build

index 64419a3c4c2fa9a3f04c14557618d7956a499f58..e516c65e3bfaf4a92939a7626cec67e20c7c1590 100755 (executable)
@@ -496,10 +496,11 @@ sub RunBuildCommand {
   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 @@ $ENV{'CCC_ANALYZER_ANALYSIS'} = $Analysis;
 
 # Run the build.
 
-RunBuildCommand(\@ARGV, $IgnoreErrors);
+RunBuildCommand(\@ARGV, $IgnoreErrors, $Cmd);
 
 # Postprocess the HTML directory.