Skip to content

README: document the contribution flow and the WebAssembly target - #559

Merged
defiantnerd merged 1 commit into
nextfrom
readme-contribution-and-wasm
Sep 14, 2026
Merged

defiantnerd merged 1 commit into
nextfrom
readme-contribution-and-wasm

Conversation

@defiantnerd

Copy link
Copy Markdown
Collaborator

Two gaps in the README, both of which cost a newcomer (or an agent) a wrong assumption.

Contribution. Nothing said that development happens on next and that main only moves at a release. The more expensive omission: issues here are not closed when a fix lands, so an open issue is not evidence of an unfixed bug — #390, #521, #522, #523 and #525 are all fixed on next and still open. Someone checking GitHub before reporting would conclude the opposite.

WebAssembly. The WASM path was undocumented outside the CMake. It is easy to assume it means "a VST3 in the browser", when in fact nothing is wrapped: the build compiles the CLAP itself into a .wclap, and VST3, AUv2, AUv3, AAX and standalone are all unavailable there.

Everything in the WASM paragraph comes from the build files:

  • cmake/make_clapfirst.cmake:74-91PLUGIN_FORMATS defaults to WCLAP alone, other formats forced off
  • cmake/shared_prologue.cmake:56-61 — Emscripten / wasm32 / wasm64 detection
  • cmake/make_clapfirst.cmake:344-352-msimd128, clap_entry and malloc exports
  • cmake/wrap_wclap.cmake:25-51 — bundle vs. flat output layout

Documentation only; no code or build changes.

One caveat worth a maintainer's eye, deliberately left out of the README: shared_prologue.cmake:61 sets ANY_WASM_TOOLCHAIN with PARENT_SCOPE, while line 64 tests it in the current scope, where that leaves it unset. Reproducing the same scope structure in a throwaway CMake project, CMake warns and the EMS branch is not taken. If that is a real bug, this README now describes intended rather than actual behaviour — happy to open a separate issue.

Two things the README did not say: that development happens on next and that
an open issue is not proof of an unfixed bug, and that a WASM build wraps
nothing - it compiles the CLAP itself into a .wclap.
@baconpaul

Copy link
Copy Markdown
Collaborator

happy to merge this

@defiantnerd
defiantnerd merged commit c4c5871 into next Sep 14, 2026
28 checks passed
@defiantnerd
defiantnerd deleted the readme-contribution-and-wasm branch September 14, 2026 18:35
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