forked from OSchip/llvm-project
[libc++] Move the enable_experimental Lit param to the DSL
This commit is contained in:
parent
918e653186
commit
f5f58f1f73
|
@ -427,7 +427,6 @@ class Configuration(object):
|
|||
self.configure_link_flags_abi_library()
|
||||
self.configure_extra_library_flags()
|
||||
elif self.cxx_stdlib_under_test == 'libstdc++':
|
||||
self.config.available_features.add('c++experimental')
|
||||
self.cxx.link_flags += ['-lstdc++fs', '-lm', '-pthread']
|
||||
elif self.cxx_stdlib_under_test == 'msvc':
|
||||
# FIXME: Correctly setup debug/release flags here.
|
||||
|
@ -465,10 +464,6 @@ class Configuration(object):
|
|||
self.add_path(self.exec_env, self.abi_library_root)
|
||||
|
||||
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:
|
||||
self.cxx.link_flags += ['-lc++']
|
||||
else:
|
||||
|
|
|
@ -34,6 +34,11 @@ parameters = [
|
|||
feature=lambda filesystem: None if filesystem else
|
||||
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,
|
||||
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),
|
||||
|
|
Loading…
Reference in New Issue