Change the available features used for no-rtti and no-exceptions
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@227107 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -343,16 +343,14 @@ class Configuration(object):
|
|||||||
|
|
||||||
def configure_compile_flags_exceptions(self):
|
def configure_compile_flags_exceptions(self):
|
||||||
enable_exceptions = self.get_lit_bool('enable_exceptions', True)
|
enable_exceptions = self.get_lit_bool('enable_exceptions', True)
|
||||||
if enable_exceptions:
|
if not enable_exceptions:
|
||||||
self.config.available_features.add('exceptions')
|
self.config.available_features.add('libcpp-no-exceptions')
|
||||||
else:
|
|
||||||
self.cxx.compile_flags += ['-fno-exceptions']
|
self.cxx.compile_flags += ['-fno-exceptions']
|
||||||
|
|
||||||
def configure_compile_flags_rtti(self):
|
def configure_compile_flags_rtti(self):
|
||||||
enable_rtti = self.get_lit_bool('enable_rtti', True)
|
enable_rtti = self.get_lit_bool('enable_rtti', True)
|
||||||
if enable_rtti:
|
if not enable_rtti:
|
||||||
self.config.available_features.add('rtti')
|
self.config.available_features.add('libcpp-no-rtti')
|
||||||
else:
|
|
||||||
self.cxx.compile_flags += ['-fno-rtti', '-D_LIBCPP_NO_RTTI']
|
self.cxx.compile_flags += ['-fno-rtti', '-D_LIBCPP_NO_RTTI']
|
||||||
|
|
||||||
def configure_compile_flags_no_threads(self):
|
def configure_compile_flags_no_threads(self):
|
||||||
|
Reference in New Issue
Block a user