File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ public struct BuildParameters: Encodable {
126126 dataPath: AbsolutePath ,
127127 configuration: BuildConfiguration ,
128128 toolchain: Toolchain ,
129+ hostTriple: Triple ? = nil ,
129130 destinationTriple: Triple ? = nil ,
130131 flags: BuildFlags ,
131132 xcbuildFlags: [ String ] = [ ] ,
@@ -147,7 +148,7 @@ public struct BuildParameters: Encodable {
147148 self . dataPath = dataPath
148149 self . configuration = configuration
149150 self . _toolchain = _Toolchain ( toolchain: toolchain)
150- self . hostTriple = . getHostTriple( usingSwiftCompiler: toolchain. swiftCompiler)
151+ self . hostTriple = hostTriple ?? . getHostTriple( usingSwiftCompiler: toolchain. swiftCompiler)
151152 self . triple = destinationTriple ?? . getHostTriple( usingSwiftCompiler: toolchain. swiftCompiler)
152153 self . flags = flags
153154 self . xcbuildFlags = xcbuildFlags
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ final class BuildPlanTests: XCTestCase {
6666 dataPath: buildPath,
6767 configuration: config,
6868 toolchain: MockToolchain ( ) ,
69+ hostTriple: hostTriple,
6970 destinationTriple: destinationTriple,
7071 flags: flags,
7172 jobs: 3 ,
You can’t perform that action at this time.
0 commit comments