Skip to content

Commit cbc8aed

Browse files
committed
Guard access-level import by compiler(>=6)
This allows us to build SourceKit-LSP using Swift 5.10 again.
1 parent 9e9579d commit cbc8aed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/SwiftExtensions/FileManagerExtensions.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13+
#if compiler(>=6)
1314
package import Foundation
15+
#else
16+
import Foundation
17+
#endif
1418

1519
extension FileManager {
1620
/// Same as `fileExists(atPath:)` but takes a `URL` instead of a `String`.

0 commit comments

Comments
 (0)