File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Sources/SKSwiftPMWorkspace Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -104,8 +104,8 @@ public final class SwiftPMWorkspace {
104
104
throw Error . cannotDetermineHostToolchain
105
105
}
106
106
107
- let destination = try Destination . hostDestination ( AbsolutePath ( destinationToolchainBinDir) )
108
- let toolchain = try UserToolchain ( destination : destination )
107
+ let swiftSDK = try SwiftSDK . hostSwiftSDK ( AbsolutePath ( destinationToolchainBinDir) )
108
+ let toolchain = try UserToolchain ( swiftSDK : swiftSDK )
109
109
110
110
var location = try Workspace . Location (
111
111
forRootPackage: AbsolutePath ( packageRoot) ,
@@ -124,8 +124,6 @@ public final class SwiftPMWorkspace {
124
124
configuration: configuration,
125
125
customHostToolchain: toolchain)
126
126
127
- let triple = toolchain. triple
128
-
129
127
let buildConfiguration : PackageModel . BuildConfiguration
130
128
switch buildSetup. configuration {
131
129
case . debug:
@@ -135,7 +133,7 @@ public final class SwiftPMWorkspace {
135
133
}
136
134
137
135
self . buildParameters = try BuildParameters (
138
- dataPath: location. scratchDirectory. appending ( component: triple . platformBuildPathComponent ( ) ) ,
136
+ dataPath: location. scratchDirectory. appending ( component: toolchain . targetTriple . platformBuildPathComponent ( ) ) ,
139
137
configuration: buildConfiguration,
140
138
toolchain: toolchain,
141
139
flags: buildSetup. flags
You can’t perform that action at this time.
0 commit comments