[libcxx] r229927 - Move to using -fdiagnostics-color=always on both GCC and Clang

Eric Fiselier eric at efcs.ca
Thu Feb 19 15:26:55 PST 2015


Author: ericwf
Date: Thu Feb 19 17:26:54 2015
New Revision: 229927

URL: http://llvm.org/viewvc/llvm-project?rev=229927&view=rev
Log:
Move to using -fdiagnostics-color=always on both GCC and Clang

Modified:
    libcxx/trunk/test/libcxx/test/config.py

Modified: libcxx/trunk/test/libcxx/test/config.py
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/test/config.py?rev=229927&r1=229926&r2=229927&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/test/config.py (original)
+++ libcxx/trunk/test/libcxx/test/config.py Thu Feb 19 17:26:54 2015
@@ -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)





More information about the cfe-commits mailing list