diff --git a/Sources/SwiftDriver/Utilities/Triple+Platforms.swift b/Sources/SwiftDriver/Utilities/Triple+Platforms.swift index e5737510e..0841046ae 100644 --- a/Sources/SwiftDriver/Utilities/Triple+Platforms.swift +++ b/Sources/SwiftDriver/Utilities/Triple+Platforms.swift @@ -321,13 +321,10 @@ extension Triple { case .linux: switch environment { - case .musl: + case .musl where vendor == .swift: // The triple for linux-static is -swift-linux-musl, to distinguish // it from a "normal" musl set-up (ala Alpine). - if vendor == .swift { - return "linux-static" - } - fallthrough + return "linux-static" case .musl, .musleabihf, .musleabi: return "musl" case .android: