Skip to content

Commit 8d7d966

Browse files
committed
Trying to fix windows build
1 parent 790ba85 commit 8d7d966

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

Package.swift

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
// swift-tools-version: 5.10
2-
// The swift-tools-version declares the minimum version of Swift required to build this package.
3-
42
import PackageDescription
53

64
let package = Package(
75
name: "LoopAlgorithmToPython",
8-
//defaultLocalization: "no",
6+
// Only apply localization and platforms if NOT on Windows
7+
#if !os(Windows)
8+
defaultLocalization: "no",
99
platforms: [
1010
.macOS(.v13),
1111
.iOS(.v15),
1212
.tvOS(.v15),
1313
.watchOS(.v8)
1414
],
15+
#endif
1516
products: [
16-
// Products define the executables and libraries a package produces, making them visible to other packages.
1717
.library(
1818
name: "LoopAlgorithmToPython",
1919
type: .dynamic,
@@ -23,8 +23,6 @@ let package = Package(
2323
.package(url: "https://github.com/tidepool-org/LoopAlgorithm.git", branch: "main"),
2424
],
2525
targets: [
26-
// Targets are the basic building blocks of a package, defining a module or a test suite.
27-
// Targets can depend on other targets in this package and products from dependencies.
2826
.target(
2927
name: "LoopAlgorithmToPython",
3028
dependencies: ["LoopAlgorithm"]
@@ -36,4 +34,4 @@ let package = Package(
3634
.process("TestData")
3735
])
3836
]
39-
)
37+
)

0 commit comments

Comments
 (0)