[cfe-commits] r55326 - /cfe/trunk/utils/ccc-analyzer

Ted Kremenek kremenek at apple.com
Mon Aug 25 13:44:32 PDT 2008


Author: kremenek
Date: Mon Aug 25 15:44:31 2008
New Revision: 55326

URL: http://llvm.org/viewvc/llvm-project?rev=55326&view=rev
Log:
Use the same 'cc' for generated preprocessed crash files as we do for compilation.

Modified:
    cfe/trunk/utils/ccc-analyzer

Modified: cfe/trunk/utils/ccc-analyzer
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/ccc-analyzer?rev=55326&r1=55325&r2=55326&view=diff

==============================================================================
--- cfe/trunk/utils/ccc-analyzer (original)
+++ cfe/trunk/utils/ccc-analyzer Mon Aug 25 15:44:31 2008
@@ -17,6 +17,9 @@
 use Cwd;
 use File::Temp qw/ tempfile /;
 use File::Path qw / mkpath /;
+
+my $CC = $ENV{'CCC_CC'};
+if (!defined $CC) { $CC = "gcc"; }
  
 ##----------------------------------------------------------------------------##
 #  Process Clang Crashes.
@@ -36,7 +39,7 @@
                                   SUFFIX => GetPPExt($Lang),
                                   DIR => $Dir);
 
-  system "gcc", @$Args, "-E", "-o", $PPFile;  
+  system $CC, @$Args, "-E", "-o", $PPFile;
   close ($PPH);
   open (OUT, ">", "$PPFile.info") or die "Cannot open $PPFile.info\n";
   print OUT "$file\n";
@@ -184,8 +187,6 @@
 my $Output;
 
 # Forward arguments to gcc.
-my $CC = $ENV{'CCC_CC'};
-if (!defined $CC) { $CC = "gcc"; }
 my $Status = system($CC, at ARGV);
 if ($Status) { exit($Status >> 8); }
 





More information about the cfe-commits mailing list