Skip to content

Commit c7bb59a

Browse files
committed
[darwin] Set 'darwin' feature to fix tests using UNSUPPORTED/REQUIRES
This should ultimately be upstreamed, but it depends on other changes to lit that have not been upstreamed yet (rdar://26780128). rdar://56817666
1 parent b20f4de commit c7bb59a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/test/lit.cfg.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ def is_filesystem_case_insensitive():
155155
if platform.system() not in ['Windows']:
156156
config.available_features.add('can-remove-opened-file')
157157

158+
# *-apple-macosx should also be XFAILED when 'darwin' is XFAILED.
159+
if lit.util.isMacOSTriple(config.target_triple):
160+
config.available_features.add('darwin')
158161

159162
def calculate_arch_features(arch_string):
160163
features = []

0 commit comments

Comments
 (0)