Skip to content

Commit 7911075

Browse files
authored
Ensure all overloads of SWBBuildService.createSession pass along the developerPath parameter. (swiftlang#293)
Without this, clients which use a deprecated createSession overload fail to find the Developer directory during initialization. This fixes swiftlang#292.
1 parent d62ca6c commit 7911075

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftBuild/SWBBuildService.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public final class SWBBuildService: Sendable {
196196

197197
// ABI compatibility
198198
public func createSession(name: String, developerPath: String? = nil, cachePath: String?, inferiorProductsPath: String?, environment: [String:String]?) async -> (Result<SWBBuildServiceSession, any Error>, [SwiftBuildMessage.DiagnosticInfo]) {
199-
await createSession(name: name, resourceSearchPaths: [], cachePath: cachePath, inferiorProductsPath: inferiorProductsPath, environment: environment)
199+
await createSession(name: name, developerPath: developerPath, resourceSearchPaths: [], cachePath: cachePath, inferiorProductsPath: inferiorProductsPath, environment: environment)
200200
}
201201

202202
/// Create a new service session.

0 commit comments

Comments
 (0)