Skip to content

Commit 4a047b9

Browse files
authored
Fix spurious warning (#1637)
NFC change to switch statement to avoid previously handled case warning.
1 parent 5e9abc0 commit 4a047b9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Sources/SwiftDriver/Utilities/Triple+Platforms.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -321,13 +321,10 @@ extension Triple {
321321

322322
case .linux:
323323
switch environment {
324-
case .musl:
324+
case .musl where vendor == .swift:
325325
// The triple for linux-static is <arch>-swift-linux-musl, to distinguish
326326
// it from a "normal" musl set-up (ala Alpine).
327-
if vendor == .swift {
328-
return "linux-static"
329-
}
330-
fallthrough
327+
return "linux-static"
331328
case .musl, .musleabihf, .musleabi:
332329
return "musl"
333330
case .android:

0 commit comments

Comments
 (0)