From bced857008e3b4e44a5432435e11e61bbe98e314 Mon Sep 17 00:00:00 2001 From: Paul LeMarquand Date: Tue, 11 Mar 2025 11:47:26 -0400 Subject: [PATCH] Fix call to SWBBuildService.createSession https://github.com/swiftlang/swift-build/pull/266 changed the API of SwiftBuildService.createSession. --- Sources/SwiftBuildSupport/SwiftBuildSystem.swift | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Sources/SwiftBuildSupport/SwiftBuildSystem.swift b/Sources/SwiftBuildSupport/SwiftBuildSystem.swift index 4613a77b728..bfdc2faf14d 100644 --- a/Sources/SwiftBuildSupport/SwiftBuildSystem.swift +++ b/Sources/SwiftBuildSupport/SwiftBuildSystem.swift @@ -52,7 +52,14 @@ func withSession( _ diagnostics: [SwiftBuild.SwiftBuildMessage.DiagnosticInfo] ) async throws -> Void ) async throws { - switch await service.createSession(name: name, resourceSearchPaths: packageManagerResourcesDirectory.map { [$0.pathString] } ?? [], cachePath: nil, inferiorProductsPath: nil, environment: nil) { + switch await service.createSession( + name: name, + developerPath: nil, + resourceSearchPaths: packageManagerResourcesDirectory.map { [$0.pathString] } ?? [], + cachePath: nil, + inferiorProductsPath: nil, + environment: nil + ) { case (.success(let session), let diagnostics): do { try await body(session, diagnostics)