aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {