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.
1 parent 41c04b4 commit c946f52Copy full SHA for c946f52
Sources/PackageModel/UserToolchain.swift
@@ -741,7 +741,10 @@ public final class UserToolchain: Toolchain {
741
// targetInfo from the compiler
742
let targetInfo = try customTargetInfo ?? Self.getTargetInfo(swiftCompiler: swiftCompilers.compile)
743
self._targetInfo = targetInfo
744
- triple = try swiftSDK.targetTriple ?? Self.getHostTriple(targetInfo: targetInfo, versioned: false)
+ triple = try Self.getHostTriple(targetInfo: targetInfo, versioned: false)
745
+ if !triple.isDarwin() {
746
+ triple = try Self.getHostTriple(targetInfo: targetInfo, versioned: true)
747
+ }
748
}
749
750
// Change the triple to the specified arch if there's exactly one of them.
0 commit comments