File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -399,6 +399,12 @@ swift_version = lit_config.params.get('swift-version',
399
399
lit_config .note ('Compiling with -swift-version ' + swift_version )
400
400
config .swift_test_options = '-swift-version ' + swift_version
401
401
402
+ # Define a macro for the next release OS version.
403
+ # This macro can be used in code as `@available(SwiftStdlib 5.5, *)`.
404
+ swift_stdlib_macro = '\' SwiftStdlib 5.5:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999\' '
405
+ config .swift_frontend_test_options += ' -define-availability ' + swift_stdlib_macro
406
+ config .swift_driver_test_options += ' -Xfrontend -define-availability -Xfrontend ' + swift_stdlib_macro
407
+
402
408
differentiable_programming = lit_config .params .get ('differentiable_programming' , None )
403
409
if differentiable_programming is not None :
404
410
config .available_features .add ('differentiable_programming' )
You can’t perform that action at this time.
0 commit comments