Skip to content

Commit 7b22cc6

Browse files
committed
Add a comment about linux-static.
"linux-static" refers to the new fully-statically-linked Linux support; the point here is that we want to distinguish that from just "Linux with musl", which is an entirely reasonable thing for us to support separately. rdar://123442522
1 parent 2efa7d6 commit 7b22cc6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/SwiftDriver/Utilities/Triple+Platforms.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ extension Triple {
294294
case .linux:
295295
switch environment {
296296
case .musl:
297+
// The triple for linux-static is <arch>-swift-linux-musl, to distinguish
298+
// it from a "normal" musl set-up (ala Alpine).
297299
if vendor == .swift {
298300
return "linux-static"
299301
}

0 commit comments

Comments
 (0)