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:
Alex Hoppen
2025-02-05 17:56:20 -08:00
parent 03da7e979d
commit 6678fb0e40
7 changed files with 16 additions and 10 deletions

View File

@@ -10,7 +10,7 @@
//
//===----------------------------------------------------------------------===//
#if canImport(PackageModel)
#if !NO_SWIFTPM_DEPENDENCY
import Basics
@preconcurrency import Build
import Dispatch