Skip to content

Commit d43548f

Browse files
committed
Try to silence compiler diagnostic about async main function being unavailable on old Darwin OSes
1 parent 82017ab commit d43548f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/Build/LLBuildCommands.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ final class TestEntryPointCommand: CustomLLBuildCommand, TestBuildCommand {
247247
#endif
248248
249249
@main
250+
@available(macOS 10.15.0, iOS 11.0, watchOS 4.0, tvOS 11.0, *)
250251
@available(*, deprecated, message: "Not actually deprecated. Marked as deprecated to allow inclusion of deprecated tests (which test deprecated functionality) without warnings")
251252
struct Runner {
252253
private static func testingLibrary() -> String {

0 commit comments

Comments
 (0)