Skip to content

Commit bced857

Browse files
committed
Fix call to SWBBuildService.createSession
swiftlang/swift-build#266 changed the API of SwiftBuildService.createSession.
1 parent e3020c3 commit bced857

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Sources/SwiftBuildSupport/SwiftBuildSystem.swift

+8-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,14 @@ func withSession(
5252
_ diagnostics: [SwiftBuild.SwiftBuildMessage.DiagnosticInfo]
5353
) async throws -> Void
5454
) async throws {
55-
switch await service.createSession(name: name, resourceSearchPaths: packageManagerResourcesDirectory.map { [$0.pathString] } ?? [], cachePath: nil, inferiorProductsPath: nil, environment: nil) {
55+
switch await service.createSession(
56+
name: name,
57+
developerPath: nil,
58+
resourceSearchPaths: packageManagerResourcesDirectory.map { [$0.pathString] } ?? [],
59+
cachePath: nil,
60+
inferiorProductsPath: nil,
61+
environment: nil
62+
) {
5663
case (.success(let session), let diagnostics):
5764
do {
5865
try await body(session, diagnostics)

0 commit comments

Comments
 (0)