bytecodealliance/cargo-wasi

`wasm-opt` not available for M1 Macintosh

Closed this issue · 0 comments

When I build using cargo wasi build on Mac OS on a Mac with an M1 processor, I get:

  Optimizing with wasm-opt
error: failed to process wasm at `***.wasm`

Caused by:
    `wasm-opt` failed to execute

Caused by:
    no precompiled binaries of `wasm-opt` are available for this platform, you'll want to set `$WASM_OPT` to a preinstalled `wasm-opt` command or disable via `wasm-opt = false` in your manifest

I found the program in the latest release of bynaryen.

Is that possible that cargo-wasi does not have it because it uses an older version which might not support amd64-mac?