From 7b250782cd6cfbc83ae0c73e59871ce2b889a33d Mon Sep 17 00:00:00 2001 From: Rauhul Varma Date: Thu, 20 Jun 2024 18:22:51 -0700 Subject: [PATCH] Fixes spurious warning NFC change to switch statement to avoid previously handled case warning. --- Sources/SwiftDriver/Utilities/Triple+Platforms.swift | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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: