You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CI: WASM smoke test with post-link.mjs runtime verification
Replace the compilation-only WASM smoke test with a full runtime test
using GHC's post-link.mjs tool and Node.js WASI support.
GHC WASM executables contain ghc_wasm_jsffi custom sections (transitively
from ghc-internal via base/Prelude) requiring JavaScript FFI glue at
instantiation time. The post-link.mjs tool — an official part of GHC's
WASM backend (utils/jsffi/post-link.mjs) — parses these sections and
generates JavaScript providing the ghc_wasm_jsffi imports.
The smoke test now follows the documented workflow from
docs/users_guide/wasm.rst: compile → post-link → instantiate with
JSFFI + WASI imports → run main.
0 commit comments