diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-08-25 20:44:31 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-08-25 20:44:31 +0000 |
commit | 2ec5cd553542ec54652fb2ae2395e46795b1af84 (patch) | |
tree | 6cb774cfebd9a26f7087109934ac1b6856d27001 | |
parent | 5a4ddaf39a26f9c7e30d3aeca17c702213a29d9f (diff) |
Use the same 'cc' for generated preprocessed crash files as we do for compilation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55326 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-x | utils/ccc-analyzer | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/ccc-analyzer b/utils/ccc-analyzer index 07205e7ae5..a669e8924a 100755 --- a/utils/ccc-analyzer +++ b/utils/ccc-analyzer @@ -17,6 +17,9 @@ use warnings; 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 @@ sub ProcessClangFailure { 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 $Lang; my $Output; # Forward arguments to gcc. -my $CC = $ENV{'CCC_CC'}; -if (!defined $CC) { $CC = "gcc"; } my $Status = system($CC,@ARGV); if ($Status) { exit($Status >> 8); } |