]> granicus.if.org Git - clang/commitdiff
Use full path to ccc-analyzer.
authorTed Kremenek <kremenek@apple.com>
Thu, 3 Apr 2008 20:08:18 +0000 (20:08 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 3 Apr 2008 20:08:18 +0000 (20:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49187 91177308-0d34-0410-b5e6-96231b3b80d8

utils/scan-build

index 7a772772107b40f6c579bca99a1279a66f46207f..ba098f3f985532a5d762ad26ad1c72a1adaff93d 100755 (executable)
@@ -427,7 +427,9 @@ $HtmlDir = GetHTMLRunDir($HtmlDir);
 
 SetHtmlEnv(\@ARGV, $HtmlDir);
 
-$ENV{'CC'} = "ccc-analyzer";
+my $Cmd = `which ccc-analyzer`;
+chop $Cmd;
+$ENV{'CC'} = $Cmd;
 
 if ($Verbose >= 2) {
   $ENV{'CCC_ANALYZER_VERBOSE'} = 1;