Move to using -fdiagnostics-color=always on both GCC and Clang
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@229927 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -479,15 +479,7 @@ class Configuration(object):
|
|||||||
if use_color != '':
|
if use_color != '':
|
||||||
self.lit_config.fatal('Invalid value for color_diagnostics "%s".'
|
self.lit_config.fatal('Invalid value for color_diagnostics "%s".'
|
||||||
% use_color)
|
% use_color)
|
||||||
cxx_type = self.cxx.type
|
self.cxx.flags += ['-fdiagnostics-color=always']
|
||||||
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']
|
|
||||||
|
|
||||||
def configure_debug_mode(self):
|
def configure_debug_mode(self):
|
||||||
debug_level = self.get_lit_conf('debug_level', None)
|
debug_level = self.get_lit_conf('debug_level', None)
|
||||||
|
Reference in New Issue
Block a user