Stream: git-wasmtime

Topic: wasmtime / issue #6223 Quesiton: How to use wasmtime to c...


view this post on Zulip Wasmtime GitHub notifications bot (Apr 17 2023 at 13:54):

fritzrehde opened issue #6223:

Is it possible to use an x86 machine to compile wasm files to aarch64 assembly? Maybe by supplying wasmtime with the --target aarch64-unknown-linux option? I can also compile wasmtime itself on x86, and I found the all-arch feature flag at https://docs.rs/crate/wasmtime/latest/features, is that a recommended solution my to question?

view this post on Zulip Wasmtime GitHub notifications bot (Apr 17 2023 at 14:54):

alexcrichton commented on issue #6223:

Indeed this is supported! As you've found the --target CLI flag which maps to Config::target is how to cross compile. Additionally as you've found cross-compilation is currently disabled by default but can be enabled at compile time with the --features all-arch flag.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 17 2023 at 14:54):

alexcrichton closed issue #6223:

Is it possible to use an x86 machine to compile wasm files to aarch64 assembly? Maybe by supplying wasmtime with the --target aarch64-unknown-linux option? I can also compile wasmtime itself on x86, and I found the all-arch feature flag at https://docs.rs/crate/wasmtime/latest/features, is that a recommended solution my to question?

view this post on Zulip Wasmtime GitHub notifications bot (Apr 17 2023 at 14:55):

alexcrichton commented on issue #6223:

If you have any problems with this support, however, feel free to open an issue for that!


Last updated: Oct 23 2024 at 20:03 UTC