[libc++] Move the enable_experimental Lit param to the DSL

This commit is contained in:
Louis Dionne 2020-07-09 13:42:32 -04:00
parent 918e653186
commit f5f58f1f73
2 changed files with 5 additions and 5 deletions

View File

@ -427,7 +427,6 @@ class Configuration(object):
self.configure_link_flags_abi_library() self.configure_link_flags_abi_library()
self.configure_extra_library_flags() self.configure_extra_library_flags()
elif self.cxx_stdlib_under_test == 'libstdc++': elif self.cxx_stdlib_under_test == 'libstdc++':
self.config.available_features.add('c++experimental')
self.cxx.link_flags += ['-lstdc++fs', '-lm', '-pthread'] self.cxx.link_flags += ['-lstdc++fs', '-lm', '-pthread']
elif self.cxx_stdlib_under_test == 'msvc': elif self.cxx_stdlib_under_test == 'msvc':
# FIXME: Correctly setup debug/release flags here. # FIXME: Correctly setup debug/release flags here.
@ -465,10 +464,6 @@ class Configuration(object):
self.add_path(self.exec_env, self.abi_library_root) self.add_path(self.exec_env, self.abi_library_root)
def configure_link_flags_cxx_library(self): def configure_link_flags_cxx_library(self):
libcxx_experimental = self.get_lit_bool('enable_experimental', default=False)
if libcxx_experimental:
self.config.available_features.add('c++experimental')
self.cxx.link_flags += ['-lc++experimental']
if self.link_shared: if self.link_shared:
self.cxx.link_flags += ['-lc++'] self.cxx.link_flags += ['-lc++']
else: else:

View File

@ -34,6 +34,11 @@ parameters = [
feature=lambda filesystem: None if filesystem else feature=lambda filesystem: None if filesystem else
Feature(name='c++filesystem-disabled')), Feature(name='c++filesystem-disabled')),
Parameter(name='enable_experimental', choices=[True, False], type=bool, default=True,
help="Whether to enable tests for experimental C++ libraries (typically Library Fundamentals TSes).",
feature=lambda experimental: None if not experimental else
Feature(name='c++experimental', linkFlag='-lc++experimental')),
Parameter(name='long_tests', choices=[True, False], type=bool, default=True, Parameter(name='long_tests', choices=[True, False], type=bool, default=True,
help="Whether to tests that take longer to run. This can be useful when running on a very slow device.", help="Whether to tests that take longer to run. This can be useful when running on a very slow device.",
feature=lambda enabled: Feature(name='long_tests') if enabled else None), feature=lambda enabled: Feature(name='long_tests') if enabled else None),