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 {
126
126
dataPath: AbsolutePath ,
127
127
configuration: BuildConfiguration ,
128
128
toolchain: Toolchain ,
129
+ hostTriple: Triple ? = nil ,
129
130
destinationTriple: Triple ? = nil ,
130
131
flags: BuildFlags ,
131
132
xcbuildFlags: [ String ] = [ ] ,
@@ -147,7 +148,7 @@ public struct BuildParameters: Encodable {
147
148
self . dataPath = dataPath
148
149
self . configuration = configuration
149
150
self . _toolchain = _Toolchain ( toolchain: toolchain)
150
- self . hostTriple = . getHostTriple( usingSwiftCompiler: toolchain. swiftCompiler)
151
+ self . hostTriple = hostTriple ?? . getHostTriple( usingSwiftCompiler: toolchain. swiftCompiler)
151
152
self . triple = destinationTriple ?? . getHostTriple( usingSwiftCompiler: toolchain. swiftCompiler)
152
153
self . flags = flags
153
154
self . xcbuildFlags = xcbuildFlags
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ final class BuildPlanTests: XCTestCase {
66
66
dataPath: buildPath,
67
67
configuration: config,
68
68
toolchain: MockToolchain ( ) ,
69
+ hostTriple: hostTriple,
69
70
destinationTriple: destinationTriple,
70
71
flags: flags,
71
72
jobs: 3 ,
You can’t perform that action at this time.
0 commit comments