We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
BuildParameters.forTriple()
1 parent 9306b79 commit 389edb7Copy full SHA for 389edb7
Sources/SPMBuildCore/BuildParameters.swift
@@ -473,10 +473,13 @@ public struct BuildParameters: Encodable {
473
testEntryPointPath = nil
474
}
475
476
+ var hostSDK = try SwiftSDK.hostSwiftSDK()
477
+ hostSDK.targetTriple = targetTriple
478
+
479
return try .init(
480
dataPath: self.dataPath.parentDirectory.appending(components: ["plugins", "tools"]),
481
configuration: self.configuration,
- toolchain: try UserToolchain(swiftSDK: SwiftSDK.hostSwiftSDK()),
482
+ toolchain: try UserToolchain(swiftSDK: hostSDK),
483
hostTriple: self.hostTriple,
484
targetTriple: targetTriple,
485
flags: BuildFlags(),
0 commit comments