mozjs-sys-v0.140.0-6: Support building for Wasm/WASI (#624)
·
22 commits
to main
since this release
* Support building for Wasm/WASI This commit changes the `build.rs` and `makefile.cargo` files to support compiling mozjs for `wasm32-wasip1` and `wasm32-wasip2`. SpiderMonkey itself has long supported targeting WASI, but the build system requires some finagling to line everything up just right for these targets. It also frobs things a little bit to make tests pass (disabling the one test that uses threads and thus isn't supported at all on wasm32-wasi right now.) Signed-off-by: Till Schneidereit <[email protected]> * Fix formatting Signed-off-by: Till Schneidereit <[email protected]> * Add CI for WASIp1 and WASIp2 targets Signed-off-by: Till Schneidereit <[email protected]> * Fix examples build Apparently Rust 1.85 needs more `cfg` than the newer version I tested with. Signed-off-by: Till Schneidereit <[email protected]> * CI fixes Signed-off-by: Till Schneidereit <[email protected]> * Try to avoid GH Actions env var escaping Signed-off-by: Till Schneidereit <[email protected]> * GH Actions really wants to escape env vars Signed-off-by: Till Schneidereit <[email protected]> * Use libz if crosscompiling with sysroot Signed-off-by: sagudev <[email protected]> * WASI in CI with default features Signed-off-by: sagudev <[email protected]> --------- Signed-off-by: Till Schneidereit <[email protected]> Signed-off-by: sagudev <[email protected]> Co-authored-by: sagudev <[email protected]>