[libcxx] r227107 - Change the available features used for no-rtti and no-exceptions

Eric Fiselier eric at efcs.ca
Mon Jan 26 10:11:58 PST 2015


Author: ericwf
Date: Mon Jan 26 12:11:58 2015
New Revision: 227107

URL: http://llvm.org/viewvc/llvm-project?rev=227107&view=rev
Log:
Change the available features used for no-rtti and no-exceptions

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=227107&r1=227106&r2=227107&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/test/config.py (original)
+++ libcxx/trunk/test/libcxx/test/config.py Mon Jan 26 12:11:58 2015
@@ -343,16 +343,14 @@ class Configuration(object):
 
     def configure_compile_flags_exceptions(self):
         enable_exceptions = self.get_lit_bool('enable_exceptions', True)
-        if enable_exceptions:
-            self.config.available_features.add('exceptions')
-        else:
+        if not enable_exceptions:
+            self.config.available_features.add('libcpp-no-exceptions')
             self.cxx.compile_flags += ['-fno-exceptions']
 
     def configure_compile_flags_rtti(self):
         enable_rtti = self.get_lit_bool('enable_rtti', True)
-        if enable_rtti:
-            self.config.available_features.add('rtti')
-        else:
+        if not enable_rtti:
+            self.config.available_features.add('libcpp-no-rtti')
             self.cxx.compile_flags += ['-fno-rtti', '-D_LIBCPP_NO_RTTI']
 
     def configure_compile_flags_no_threads(self):





More information about the cfe-commits mailing list