mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
Cache the mapping from compiler to toolchain
While at it, also make `Toolchain.path` non-optional and clean up `ToolchainRegistry.init` slightly.
This commit is contained in:
@@ -425,7 +425,7 @@ package actor SwiftPMBuildSystem: BuiltInBuildSystem {
|
||||
languageIds: [.c, .cpp, .objective_c, .objective_cpp, .swift],
|
||||
dependencies: self.targetDependencies[targetId, default: []].sorted { $0.uri.stringValue < $1.uri.stringValue },
|
||||
dataKind: .sourceKit,
|
||||
data: SourceKitBuildTarget(toolchain: toolchain.path.map(URI.init)).encodeToLSPAny()
|
||||
data: SourceKitBuildTarget(toolchain: URI(toolchain.path)).encodeToLSPAny()
|
||||
)
|
||||
}
|
||||
targets.append(
|
||||
|
||||
Reference in New Issue
Block a user