Skip to content

Commit 418b9a9

Browse files
committed
Fix WASI build issue
1 parent cc69107 commit 418b9a9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Package.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,15 @@ let package = Package(
164164
cSettings: [
165165
.unsafeFlags(["-I", includePath], .when(platforms: .nonDarwinPlatforms)),
166166
.define("__COREFOUNDATION_FORSWIFTFOUNDATIONONLY__", to: "1", .when(platforms: .nonDarwinPlatforms)),
167+
.define("_WASI_EMULATED_SIGNAL", .when(platforms: [.wasi])),
167168
]
168169
),
169170
.target(
170171
name: "COpenSwiftUICore",
171172
cSettings: [
172173
.unsafeFlags(["-I", includePath], .when(platforms: .nonDarwinPlatforms)),
173174
.define("__COREFOUNDATION_FORSWIFTFOUNDATIONONLY__", to: "1", .when(platforms: .nonDarwinPlatforms)),
175+
.define("_WASI_EMULATED_SIGNAL", .when(platforms: [.wasi])),
174176
]
175177
),
176178
.binaryTarget(name: "CoreServices", path: "PrivateFrameworks/CoreServices.xcframework"),

[email protected]

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,15 @@ let package = Package(
160160
cSettings: [
161161
.unsafeFlags(["-I", includePath], .when(platforms: .nonDarwinPlatforms)),
162162
.define("__COREFOUNDATION_FORSWIFTFOUNDATIONONLY__", to: "1", .when(platforms: .nonDarwinPlatforms)),
163+
.define("_WASI_EMULATED_SIGNAL", .when(platforms: [.wasi])),
163164
]
164165
),
165166
.target(
166167
name: "COpenSwiftUICore",
167168
cSettings: [
168169
.unsafeFlags(["-I", includePath], .when(platforms: .nonDarwinPlatforms)),
169170
.define("__COREFOUNDATION_FORSWIFTFOUNDATIONONLY__", to: "1", .when(platforms: .nonDarwinPlatforms)),
171+
.define("_WASI_EMULATED_SIGNAL", .when(platforms: [.wasi])),
170172
]
171173
),
172174
.binaryTarget(name: "CoreServices", path: "PrivateFrameworks/CoreServices.xcframework"),

0 commit comments

Comments
 (0)