Skip to content

Commit 14c5a4a

Browse files
committed
testing new package.swift condition on os
1 parent 8d7d966 commit 14c5a4a

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

Package.swift

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
// swift-tools-version: 5.10
22
import PackageDescription
33

4-
let package = Package(
5-
name: "LoopAlgorithmToPython",
6-
// Only apply localization and platforms if NOT on Windows
7-
#if !os(Windows)
8-
defaultLocalization: "no",
9-
platforms: [
4+
// Define platforms conditionally
5+
let packagePlatforms: [SupportedPlatform]
6+
#if os(Windows)
7+
packagePlatforms = [] // Windows doesn't need platform-specific tags here
8+
#else
9+
packagePlatforms = [
1010
.macOS(.v13),
1111
.iOS(.v15),
1212
.tvOS(.v15),
1313
.watchOS(.v8)
14-
],
15-
#endif
14+
]
15+
#endif
16+
17+
let package = Package(
18+
name: "LoopAlgorithmToPython",
19+
platforms: packagePlatforms,
1620
products: [
1721
.library(
1822
name: "LoopAlgorithmToPython",

0 commit comments

Comments
 (0)