Skip to content

Support for wasm32-unknown-unknown #73

@tmpfs

Description

@tmpfs

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions