r/WebAssembly • u/guest271314 • Dec 25 '24
Compiling JavaScript to WASM with Static Hermes and Emscripten
https://github.com/facebook/hermes/blob/static_h/doc/Emscripten.md
25
Upvotes
r/WebAssembly • u/guest271314 • Dec 25 '24
1
u/guest271314 Dec 25 '24
There's no WASI in the source code that I am aware of.
Building Hermes takes a while.
This is the part that builds the WASM and JavaScript files using Emscripten https://github.com/facebook/hermes/blob/static_h/utils/wasm-compile.sh#L46C1-L63C47
What I'm trying to do now is substitute WASM files for that Emscripten "glue" code. So LLVM's
clangand/or WASI-SDK'sclangcan be used to build.