Skip to content

Commit 256ad7f

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 3fc6c3b commit 256ad7f

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
@@ -151,6 +151,9 @@ def is_filesystem_case_insensitive():
151151
if platform.system() not in ['Windows']:
152152
config.available_features.add('can-remove-opened-file')
153153

154+
# *-apple-macosx should also be XFAILED when 'darwin' is XFAILED.
155+
if lit.util.isMacOSTriple(config.target_triple):
156+
config.available_features.add('darwin')
154157

155158
def calculate_arch_features(arch_string):
156159
features = []

0 commit comments

Comments
 (0)