Added --use-cc option to scan-build to allow the user to specify what compiler they want to use for code compilation.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55142 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/ccc-analyzer b/utils/ccc-analyzer
index d41978c..c760a86 100755
--- a/utils/ccc-analyzer
+++ b/utils/ccc-analyzer
@@ -184,7 +184,9 @@
 my $Output;
 
 # Forward arguments to gcc.
-my $Status = system("gcc",@ARGV);
+my $CC = $ENV{'CCC_CC'};
+if (!defined $CC) { $CC = "gcc"; }
+my $Status = system($CC,@ARGV);
 if ($Status) { exit($Status); }
 
 # Get the analysis options.