File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ public final class BuildExecutionContext {
262262 private var indexStoreAPICache = LazyCache ( createIndexStoreAPI)
263263 private func createIndexStoreAPI( ) -> Result < IndexStoreAPI , Error > {
264264 Result {
265- let ext = buildParameters. triple . dynamicLibraryExtension
265+ let ext = buildParameters. hostTriple . dynamicLibraryExtension
266266 let indexStoreLib = buildParameters. toolchain. toolchainLibDir. appending ( component: " libIndexStore " + ext)
267267 return try IndexStoreAPI ( dylib: indexStoreLib)
268268 }
Original file line number Diff line number Diff line change @@ -46,6 +46,9 @@ public struct BuildParameters: Encodable {
4646 public var toolchain : Toolchain { _toolchain. toolchain }
4747 private let _toolchain : _Toolchain
4848
49+ /// Host triple.
50+ public var hostTriple : Triple
51+
4952 /// Destination triple.
5053 public var triple : Triple
5154
@@ -144,6 +147,7 @@ public struct BuildParameters: Encodable {
144147 self . dataPath = dataPath
145148 self . configuration = configuration
146149 self . _toolchain = _Toolchain ( toolchain: toolchain)
150+ self . hostTriple = . getHostTriple( usingSwiftCompiler: toolchain. swiftCompiler)
147151 self . triple = destinationTriple ?? . getHostTriple( usingSwiftCompiler: toolchain. swiftCompiler)
148152 self . flags = flags
149153 self . xcbuildFlags = xcbuildFlags
You can’t perform that action at this time.
0 commit comments