Skip to content

Commit ad408bd

Browse files
committed
Reapply "Revert "[lit] Add a new feature DARWIN_SIMULATOR so we can use requires lines…""
This reverts commit 47dbac0. But this time do it the right way. I wonder if it would be possible to pylint lit.cfg to prevent problems like this.
1 parent 3db28e5 commit ad408bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/lit.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,12 +638,15 @@ if run_vendor == 'apple':
638638
elif run_os == 'ios' or run_os == 'tvos' or run_os == 'watchos':
639639
# iOS/tvOS/watchOS simulator
640640
if run_os == 'ios':
641+
config.available_features.add('DARWIN_SIMULATOR=ios')
641642
lit_config.note("Testing iOS simulator " + config.variant_triple)
642643
xcrun_sdk_name = "iphonesimulator"
643644
elif run_os == 'watchos':
645+
config.available_features.add('DARWIN_SIMULATOR=watchos')
644646
lit_config.note("Testing watchOS simulator " + config.variant_triple)
645647
xcrun_sdk_name = "watchsimulator"
646648
else:
649+
config.available_features.add('DARWIN_SIMULATOR=tvos')
647650
lit_config.note("Testing AppleTV simulator " + config.variant_triple)
648651
xcrun_sdk_name = "appletvsimulator"
649652

0 commit comments

Comments
 (0)