-
Notifications
You must be signed in to change notification settings - Fork 39
Support for wasm32-unknown-unknown #73
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Hi @survived,
I am looking into using this in a webassembly context, currently the build fails due to gmp-mpfr-sys:
error: failed to run custom build command for `gmp-mpfr-sys v1.6.1`
Caused by:
process didn't exit successfully: `/Users/muji/git/forks/cggmp21/target/debug/build/gmp-mpfr-sys-18f237700e2fce47/build-script-build` (exit status: 101)
--- stderr
thread 'main' panicked at /Users/muji/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gmp-mpfr-sys-1.6.1/build.rs:105:9:
Cross compilation from aarch64-apple-darwin to wasm32-unknown-unknown not supported! Use the `force-cross` feature to cross compile anyway.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
Has anyone tried with the force-cross feature for wasm32-unknown-unknown? Is it known to work?
Or would it be better to use a different GMP implementation for WASM behind a feature flag? Are you interested in supporting the wasm32-unknown-unknown target?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request