aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Care <tom.care@uqconnect.edu.au>2010-09-29 23:48:31 +0000
committerTom Care <tom.care@uqconnect.edu.au>2010-09-29 23:48:31 +0000
commita716f639a6fd4cdadd33853918f1115b3be37cfe (patch)
tree3974125cdd56b5dd7f9b05c6c1dd0bcdc6fd09fa
parentcf9ce13774dad86f780d84cd41e6bd64c039324a (diff)
Modified the ccc-analyzer script to print the compiler command when log level verbosity is enabled. This is handy for debugging.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115109 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xtools/scan-build/ccc-analyzer3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/scan-build/ccc-analyzer b/tools/scan-build/ccc-analyzer
index c182a68620..f579e56e80 100755
--- a/tools/scan-build/ccc-analyzer
+++ b/tools/scan-build/ccc-analyzer
@@ -406,6 +406,9 @@ my %Uniqued;
# Forward arguments to gcc.
my $Status = system($Compiler,@ARGV);
+if (defined $ENV{'CCC_ANALYZER_LOG'}) {
+ print "$Compiler @ARGV\n";
+}
if ($Status) { exit($Status >> 8); }
# Get the analysis options.