Skip to content

Commit d63a94e

Browse files
authored
Rename matches to isRuntimeCompatible
1 parent 82b1e83 commit d63a94e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Sources/Basics/Triple+Basics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ extension Triple {
117117
}
118118
}
119119

120-
public func matches(_ triple: Triple) -> Bool {
120+
public func isRuntimeCompatible(with triple: Triple) -> Bool {
121121
guard self.isMacOSX, let version = self._macOSVersion, let comparedVersion = triple._macOSVersion else {
122122
return self.tripleString == triple.tripleString
123123
}

Sources/PackageModel/SwiftSDKBundle.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,9 @@ extension [SwiftSDKBundle] {
428428
for bundle in self {
429429
for (artifactID, variants) in bundle.artifacts {
430430
for variant in variants {
431-
guard variant.metadata.supportedTriples.contains(where: { hostTriple.matches($0) }) else {
431+
guard variant.metadata.supportedTriples.contains(where: {
432+
hostTriple.isRuntimeCompatible(with: $0)
433+
}) else {
432434
continue
433435
}
434436

0 commit comments

Comments
 (0)