Skip to content

Conversation

MaxDesiatov
Copy link
Member

@MaxDesiatov MaxDesiatov commented Oct 10, 2025

Wasm is the only unsupported platform for WasmKit in the Swift Package Index build matrix.

One possible use case is using features like WAT assembler or component model tools in the browser.

Another use case could be polyfilling a future Wasm feature running with older Wasm features, when running WasmKit itself in an older Wasm engine.

For proper testing we also need to fix swift test in the Swift toolchain.

Wasm is the only unsupported platform for WasmKit in the Swift Package Index build matrix.

One possible use case is when an implementation for a future Wasm feature is emulated with older Wasm features, when running WasmKit itself in an older Wasm engine.

The only remaining roadblock is the lack of `swiftasynccall`, which prevents `_CWasmKit` module from building, but the rest of the modules seem to build fine. For proper testing we also need to fix `swift test` in the Swift toolchain.
@MaxDesiatov MaxDesiatov changed the title Fix most of the errors when building WasmKit for WASI Fix most errors when building WasmKit for WASI Oct 10, 2025
@MaxDesiatov MaxDesiatov changed the title Fix most errors when building WasmKit for WASI Fix some errors when building WasmKit for WASI Oct 10, 2025
Copy link
Member

@kateinoigakukun kateinoigakukun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

token threading is impossible until I unblock tail-call support in the toolchain side, so let's turn it off for now like what we do for windows

@MaxDesiatov MaxDesiatov changed the title Fix some errors when building WasmKit for WASI Fix errors when building WasmKit for WASI Oct 10, 2025
@MaxDesiatov MaxDesiatov merged commit 469fc41 into main Oct 10, 2025
31 of 32 checks passed
@MaxDesiatov MaxDesiatov deleted the maxd/wasi-fixes branch October 10, 2025 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants