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 compilewasmtime
itself on x86, and I found theall-arch
feature flag at https://docs.rs/crate/wasmtime/latest/features, is that a recommended solution my to question?
alexcrichton commented on issue #6223:
Indeed this is supported! As you've found the
--target
CLI flag which maps toConfig::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.
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 compilewasmtime
itself on x86, and I found theall-arch
feature flag at https://docs.rs/crate/wasmtime/latest/features, is that a recommended solution my to question?
alexcrichton commented on issue #6223:
If you have any problems with this support, however, feel free to open an issue for that!
Last updated: Dec 23 2024 at 12:05 UTC