forked from OSchip/llvm-project
				
			Only use colored output when the environment variable SCAN_BUILD_COLOR is set.
llvm-svn: 52379
This commit is contained in:
		
							parent
							
								
									08e171183f
								
							
						
					
					
						commit
						3dd7724711
					
				| 
						 | 
					@ -26,7 +26,8 @@ my $Prog = "scan-build";
 | 
				
			||||||
my $BuildName;
 | 
					my $BuildName;
 | 
				
			||||||
my $BuildDate;
 | 
					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 {
 | 
					sub Diag {
 | 
				
			||||||
  if ($UseColor) {
 | 
					  if ($UseColor) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue