aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-06-17 03:06:59 +0000
committerTed Kremenek <kremenek@apple.com>2008-06-17 03:06:59 +0000
commitf2f8d6c4718564dab73df3b5aa2d0be21bc6a163 (patch)
tree7046a85282b165b50415d15312e84aed4ba8fe6b
parent5549976193e34417d4474a5f4a514268ef6666c7 (diff)
Only use colored output when the environment variable SCAN_BUILD_COLOR is set.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52379 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xutils/scan-build3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/scan-build b/utils/scan-build
index d9585f6a40..e305ee50a7 100755
--- a/utils/scan-build
+++ b/utils/scan-build
@@ -26,7 +26,8 @@ my $Prog = "scan-build";
my $BuildName;
my $BuildDate;
-my $UseColor = (($ENV{'TERM'} eq 'xterm-color') and -t STDOUT);
+my $UseColor = ((($ENV{'TERM'} eq 'xterm-color') and -t STDOUT)
+ and defined($ENV{'SCAN_BUILD_COLOR'}));
sub Diag {
if ($UseColor) {