Skip to content

Commit e2be1c7

Browse files
committed
Add CSystemExtras to [email protected]
1 parent ee26e4b commit e2be1c7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

[email protected]

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ let DarwinPlatforms: [Platform] = [.macOS, .iOS, .watchOS, .tvOS, .visionOS]
88

99
let package = Package(
1010
name: "WasmKit",
11-
platforms: [.macOS(.v14), .iOS(.v17)],
11+
platforms: [.macOS(.v15), .iOS(.v17)],
1212
products: [
1313
.executable(name: "wasmkit-cli", targets: ["CLI"]),
1414
.library(name: "WasmKit", targets: ["WasmKit"]),
@@ -93,14 +93,17 @@ let package = Package(
9393
.target(
9494
name: "SystemExtras",
9595
dependencies: [
96-
.product(name: "SystemPackage", package: "swift-system")
96+
.product(name: "SystemPackage", package: "swift-system"),
97+
.target(name: "CSystemExtras", condition: .when(platforms: [.wasi])),
9798
],
9899
exclude: ["CMakeLists.txt"],
99100
swiftSettings: [
100101
.define("SYSTEM_PACKAGE_DARWIN", .when(platforms: DarwinPlatforms))
101102
]
102103
),
103104

105+
.target(name: "CSystemExtras"),
106+
104107
.executableTarget(
105108
name: "WITTool",
106109
dependencies: [

0 commit comments

Comments
 (0)