Skip to content

Commit 365e3a5

Browse files
committed
Guard @retroactive for CommandConfiguration behind #if compiler(>=5.11)
Fixes a build failure when building SourceKit-LSP using Xcode 15.4.
1 parent 1fb087f commit 365e3a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/Diagnose/CommandConfiguration+Sendable.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,8 @@ import ArgumentParser
1414

1515
// If `CommandConfiguration` is not sendable, commands can't have static `configuration` properties.
1616
// Needed until we update Swift CI to swift-argument-parser 1.3.1, which has this conformance (rdar://128042447).
17+
#if compiler(<5.11)
18+
extension CommandConfiguration: @unchecked Sendable {}
19+
#else
1720
extension CommandConfiguration: @unchecked @retroactive Sendable {}
21+
#endif

0 commit comments

Comments
 (0)