]> granicus.if.org Git - clang/commitdiff
Set the location of ccc-analyzer to be the same directory as where scan-build
authorTed Kremenek <kremenek@apple.com>
Tue, 8 Apr 2008 20:22:12 +0000 (20:22 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 8 Apr 2008 20:22:12 +0000 (20:22 +0000)
is located.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49397 91177308-0d34-0410-b5e6-96231b3b80d8

utils/scan-build

index 29ad085c484aee94d203a6ae984b05fb3427e19a..b4efa7bb9c8805c5889624cd125cc55d2276d146 100755 (executable)
@@ -265,8 +265,6 @@ ENDTEXT
   print OUT "</table>\n</body></html>\n";  
   close(OUT);
   
-  print "$RealBin\n";
-  
   CopyJS($Dir);
 }
 
@@ -427,8 +425,11 @@ $HtmlDir = GetHTMLRunDir($HtmlDir);
 
 SetHtmlEnv(\@ARGV, $HtmlDir);
 
-my $Cmd = `which ccc-analyzer`;
-$Cmd =~ s/\015?\012//;
+my $Cmd = "$RealBin/ccc-analyzer";
+
+die "$Prog: Executable 'ccc-analyzer' does not exist at '$Cmd'\n"
+  if (! -x $Cmd);
+
 $ENV{'CC'} = $Cmd;
 
 if ($Verbose >= 2) {