winterjs
winterjs copied to clipboard
Compiling to WASM
Having managed to get winterjs building on Linux, @Arshia001 thanks again..
I am now trying to build it to wasm. My understanding is that I should be able to follow your build.sh script to get this done.
i.e. cargo +wasix build --target wasm32-wasmer-wasi -r
so long as I have the required tooling installed.
error: failed to run custom build command for `mozjs_sys v0.68.2 (https://github.com/wasmerio/mozjs.git?branch=fix-obj-file-lists#f6cbd122)`
Caused by:
process didn't exit successfully: `/home/doco/dev/winterjs/target/release/build/mozjs_sys-e8860a2e484c9cf9/build-script-build` (exit status: 101)
--- stdout
cargo:outdir=/home/doco/dev/winterjs/target/wasm32-wasmer-wasi/release/build/mozjs_sys-f724c30fa6d4af20/out/build
--- stderr
gmake: *** No targets specified and no makefile found. Stop.
thread 'main' panicked at /home/doco/.cargo/git/checkouts/mozjs-e1c76167ba7c548f/f6cbd12/mozjs-sys/build.rs:251:38:
Please provide WASI_SYSROOT for WASI targets: NotPresent
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Any help here would be appreciated... :)