Skip to content

Conversation

@geraintluff
Copy link
Contributor

wasi-sdk is a toolchain (with CMake definitions). It's essentially just Clang, with nice defaults and prebuilt stuff so that you can compile WebAssembly modules easily.

If you don't need any JS stuff (which we don't for WCLAP), then wasi-sdk is much simpler than Emscripten, and closer to how WASM is exported from other languages such as Rust.

This PR adds support so that WCLAPs can be straightforwardly built with vanilla CMake + wasi-sdk:

cmake . -B out/build-wasi -DCMAKE_TOOLCHAIN_FILE=wasi-sdk/share/cmake/wasi-sdk-pthread.cmake  -DCMAKE_BUILD_TYPE=Release
cmake --build out/build-wasi --target example-plugins_wclap --config Release

@baconpaul baconpaul merged commit 4b16e64 into free-audio:next Nov 18, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants