fritzrehde opened issue #6223:
Is it possible to use an x86 machine to compile wasm files to aarch64 assembly? Maybe by supplying
wasmtimewith the--target aarch64-unknown-linuxoption? I can also compilewasmtimeitself on x86, and I found theall-archfeature 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
--targetCLI flag which maps toConfig::targetis 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-archflag.
alexcrichton closed issue #6223:
Is it possible to use an x86 machine to compile wasm files to aarch64 assembly? Maybe by supplying
wasmtimewith the--target aarch64-unknown-linuxoption? I can also compilewasmtimeitself on x86, and I found theall-archfeature 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 13 2025 at 19:03 UTC