From f2f8d6c4718564dab73df3b5aa2d0be21bc6a163 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 17 Jun 2008 03:06:59 +0000 Subject: [PATCH] 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 --- utils/scan-build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.40.0