cli: Compile parsers to wasm using wasi-sdk, not emscripten#4393
cli: Compile parsers to wasm using wasi-sdk, not emscripten#4393maxbrunsfeld merged 2 commits intomasterfrom
wasi-sdk, not emscripten#4393Conversation
|
This means we can also remove the "update emscripten" |
|
Ah, I see that you added |
|
Oh yeah, I hadn't seen that discussion about how |
|
Maybe one could simply shell out to |
|
On a related note, there's still a huge number of references to |
|
Emscripten is still needed for generating the Tree-sitter web binding. It generates the JavaScript->WASM glue that lets us package Tree-sitter as a JavaScript library. What it's not needed for is compiling Tree-sitter parsers to WASM. That can now be done with |
|
That makes sense, thanks for the explanation! (And indeed a very welcome change for us pure-C consumers :)) |
The wasi-sdk is automatically downloaded if needed. It is newer and lighter-weight than emscripten. This change eliminates the need for docker/podman when building wasm parsers.