Move to using -fdiagnostics-color=always on both GCC and Clang

llvm-svn: 229927
This commit is contained in:
Eric Fiselier 2015-02-19 23:26:54 +00:00
parent a9f0a8d325
commit 801e71129f
1 changed files with 1 additions and 9 deletions

View File

@ -479,15 +479,7 @@ class Configuration(object):
if use_color != '':
self.lit_config.fatal('Invalid value for color_diagnostics "%s".'
% use_color)
cxx_type = self.cxx.type
if cxx_type is None:
self.lit_config.warning(
'Unable to force color output for unknown compiler "%s"'
% cxx.path)
elif cxx_type in ['clang', 'apple-clang']:
self.cxx.flags += ['-fcolor-diagnostics']
elif cxx_type == 'gcc':
self.cxx.flags += ['-fdiagnostics-color=always']
self.cxx.flags += ['-fdiagnostics-color=always']
def configure_debug_mode(self):
debug_level = self.get_lit_conf('debug_level', None)