Skip to content

Commit 611f9b5

Browse files
committed
Don’t use @retroactive when building with a Swift 5.10 compiler
This fixes a building using a Swift 5.10 compiler.
1 parent 36bbdd0 commit 611f9b5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/SourceKitD/DynamicallyLoadedSourceKitD.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ import SKSupport
1616

1717
import struct TSCBasic.AbsolutePath
1818

19+
#if compiler(<5.11)
20+
extension DLHandle: @unchecked Sendable {}
21+
#else
1922
extension DLHandle: @unchecked @retroactive Sendable {}
23+
#endif
2024
extension sourcekitd_api_keys: @unchecked Sendable {}
2125
extension sourcekitd_api_requests: @unchecked Sendable {}
2226
extension sourcekitd_api_values: @unchecked Sendable {}

0 commit comments

Comments
 (0)