[cfe-commits] r49397 - /cfe/trunk/utils/scan-build
    Ted Kremenek 
    kremenek at apple.com
       
    Tue Apr  8 13:22:12 PDT 2008
    
    
  
Author: kremenek
Date: Tue Apr  8 15:22:12 2008
New Revision: 49397
URL: http://llvm.org/viewvc/llvm-project?rev=49397&view=rev
Log:
Set the location of ccc-analyzer to be the same directory as where scan-build
is located.
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=49397&r1=49396&r2=49397&view=diff
==============================================================================
--- cfe/trunk/utils/scan-build (original)
+++ cfe/trunk/utils/scan-build Tue Apr  8 15:22:12 2008
@@ -265,8 +265,6 @@
   print OUT "</table>\n</body></html>\n";  
   close(OUT);
   
-  print "$RealBin\n";
-  
   CopyJS($Dir);
 }
 
@@ -427,8 +425,11 @@
 
 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) {
    
    
More information about the cfe-commits
mailing list