diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-06-19 19:27:28 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-06-19 19:27:28 +0000 |
commit | c9480dd03522f0bab5fff7d30402cb7ee31117dc (patch) | |
tree | f6ae9ce3c332e029da7501a31b2e0d82fce1215b | |
parent | 13223073a94f8df6527193827192a326d50877fb (diff) |
Adjust scan-build to enable color output for xterm-256color.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158735 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-x | tools/scan-build/scan-build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/scan-build/scan-build b/tools/scan-build/scan-build index ea735700b2..7bcd5c243c 100755 --- a/tools/scan-build/scan-build +++ b/tools/scan-build/scan-build @@ -28,7 +28,7 @@ my $BuildName; my $BuildDate; my $TERM = $ENV{'TERM'}; -my $UseColor = (defined $TERM and $TERM eq 'xterm-color' and -t STDOUT +my $UseColor = (defined $TERM and $TERM =~ 'xterm-.*color' and -t STDOUT and defined $ENV{'SCAN_BUILD_COLOR'}); my $UserName = HtmlEscape(getpwuid($<) || 'unknown'); |