Skip to content

Commit c3ec99a

Browse files
authored
Merge pull request #2869 from compnerd/it-is-known
PackageModel: add `windows` to the list of known platforms
2 parents 8597108 + 22f11de commit c3ec99a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Sources/PackageModel/Platform.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public final class PlatformRegistry {
2929

3030
/// The static list of known platforms.
3131
private static var _knownPlatforms: [Platform] {
32-
return [.macOS, .iOS, .tvOS, .watchOS, .linux, .android, .wasi]
32+
return [.macOS, .iOS, .tvOS, .watchOS, .linux, .windows, .android, .wasi]
3333
}
3434
}
3535

Tests/PackageLoadingTests/PackageBuilderTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,6 +1570,7 @@ class PackageBuilderTests: XCTestCase {
15701570
"tvos": "9.0",
15711571
"watchos": "2.0",
15721572
"android": "0.0",
1573+
"windows": "0.0",
15731574
"wasi": "0.0",
15741575
]
15751576

@@ -1625,6 +1626,7 @@ class PackageBuilderTests: XCTestCase {
16251626
"ios": "9.0",
16261627
"watchos": "2.0",
16271628
"android": "0.0",
1629+
"windows": "0.0",
16281630
"wasi": "0.0",
16291631
]
16301632

0 commit comments

Comments
 (0)