From: Ted Kremenek Date: Mon, 2 Jun 2008 21:52:47 +0000 (+0000) Subject: Use the correct 'ccc-analyzer' when the build command is a direct invocation of gcc. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6195c373b86963b029a2d1d2501f899789d74ba8;p=clang Use the correct 'ccc-analyzer' when the build command is a direct invocation of gcc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51883 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/scan-build b/utils/scan-build index 64419a3c4c..e516c65e3b 100755 --- a/utils/scan-build +++ b/utils/scan-build @@ -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.