在使用tinygo编译项目时
tinygo build -o ./envoy.wasm -target=wasi ./main.go
error: could not find wasm-opt, set the WASMOPT environment variable to override
报错提示没有wasm-opt,因为最新版本已经更换,原因如下
Windows release missing `wasm-opt.exe` · Issue #2601 · tinygo-org/tinygo (github.com)
解决方法直接下载
WebAssembly/binaryen: Optimizer and compiler/toolchain library for WebAssembly (github.com)
里面包含了我们需要的wasm-opt