[libcxx] Only enable the availability LIT feature when we're testing libc++

Other standard libraries don't implement availability markup, so it doesn't
make sense to e.g. XFAIL tests based on availability markup outside of
libc++.

llvm-svn: 348871
This commit is contained in:
Louis Dionne 2018-12-11 18:05:38 +00:00
parent b3a7cae045
commit 471b8b73c9
1 changed files with 4 additions and 2 deletions

View File

@ -407,8 +407,10 @@ class Configuration(object):
if self.use_deployment:
self.add_deployment_feature('with_system_cxx_lib')
# Configure the availability feature.
if self.use_deployment:
# Configure the availability feature. Availability is only enabled
# with libc++, because other standard libraries do not provide
# availability markup.
if self.use_deployment and self.cxx_stdlib_under_test == 'libc++':
self.config.available_features.add('availability')
self.add_deployment_feature('availability')