Skip to content

Commit aae6f43

Browse files
committed
Fix a compilation issue caused by swiftlang#1533 and swiftlang#1524 racing
1 parent 16e4f83 commit aae6f43

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/SKSwiftPMWorkspace/SwiftPMBuildSystem.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,10 @@ public actor SwiftPMBuildSystem {
221221
let hostSwiftPMToolchain = try UserToolchain(swiftSDK: hostSDK)
222222

223223
var destinationSDK: SwiftSDK
224-
if let swiftSDK = options.swiftSDK {
224+
if let swiftSDK = options.swiftPM.swiftSDK {
225225
let bundleStore = try SwiftSDKBundleStore(
226226
swiftSDKsDirectory: fileSystem.getSharedSwiftSDKsDirectory(
227-
explicitDirectory: options.swiftSDKsDirectory.map { try AbsolutePath(validating: $0) }
227+
explicitDirectory: options.swiftPM.swiftSDKsDirectory.map { try AbsolutePath(validating: $0) }
228228
),
229229
fileSystem: fileSystem,
230230
observabilityScope: observabilitySystem.topScope,
@@ -235,7 +235,7 @@ public actor SwiftPMBuildSystem {
235235
destinationSDK = hostSDK
236236
}
237237

238-
if let triple = options.triple {
238+
if let triple = options.swiftPM.triple {
239239
destinationSDK = hostSDK
240240
destinationSDK.targetTriple = try Triple(triple)
241241
}

0 commit comments

Comments
 (0)