forked from OSchip/llvm-project
Move to using -fdiagnostics-color=always on both GCC and Clang
llvm-svn: 229927
This commit is contained in:
parent
a9f0a8d325
commit
801e71129f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue