mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
Use an active compilation condition to build SourceKit-LSP without SwiftPM support
This is more explicit than using `#if canImport(PackageModel)`.
This commit is contained in:
@@ -103,7 +103,7 @@ package func determineBuildSystem(
|
||||
case .compilationDatabase:
|
||||
spec = searchForCompilationDatabaseConfig(in: workspaceFolderUrl, options: options)
|
||||
case .swiftPM:
|
||||
#if canImport(PackageModel)
|
||||
#if !NO_SWIFTPM_DEPENDENCY
|
||||
spec = SwiftPMBuildSystem.searchForConfig(in: workspaceFolderUrl, options: options)
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user