[libcxx] r348871 - [libcxx] Only enable the availability LIT feature when we're testing libc++
Louis Dionne
ldionne at apple.com
Tue Dec 11 10:05:38 PST 2018
Author: ldionne
Date: Tue Dec 11 10:05:38 2018
New Revision: 348871
URL: http://llvm.org/viewvc/llvm-project?rev=348871&view=rev
Log:
[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++.
Modified:
libcxx/trunk/utils/libcxx/test/config.py
Modified: libcxx/trunk/utils/libcxx/test/config.py
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/utils/libcxx/test/config.py?rev=348871&r1=348870&r2=348871&view=diff
==============================================================================
--- libcxx/trunk/utils/libcxx/test/config.py (original)
+++ libcxx/trunk/utils/libcxx/test/config.py Tue Dec 11 10:05:38 2018
@@ -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')
More information about the libcxx-commits
mailing list