Skip to content

Commit e2f569a

Browse files
Build fix for embedded wasm
1 parent d590528 commit e2f569a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Sources/JavaScriptKit/FundamentalObjects/JSObject.swift

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import _CJavaScriptKit
22

3-
#if canImport(wasi_pthread)
4-
import wasi_pthread
3+
#if arch(wasm32)
4+
#if canImport(wasi_pthread)
5+
import wasi_pthread
6+
#endif
57
#else
68
import Foundation // for pthread_t on non-wasi platforms
79
#endif

Sources/JavaScriptKit/ThreadLocal.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if os(WASI)
1+
#if arch(wasm32)
22
#if canImport(wasi_pthread)
33
import wasi_pthread
44
#endif

0 commit comments

Comments
 (0)