Skip to content

Commit

Permalink
Build fix for embedded wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Nov 28, 2024
1 parent d590528 commit e2f569a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Sources/JavaScriptKit/FundamentalObjects/JSObject.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import _CJavaScriptKit

#if canImport(wasi_pthread)
import wasi_pthread
#if arch(wasm32)
#if canImport(wasi_pthread)
import wasi_pthread
#endif
#else
import Foundation // for pthread_t on non-wasi platforms
#endif
Expand Down
2 changes: 1 addition & 1 deletion Sources/JavaScriptKit/ThreadLocal.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if os(WASI)
#if arch(wasm32)
#if canImport(wasi_pthread)
import wasi_pthread
#endif
Expand Down

0 comments on commit e2f569a

Please sign in to comment.