Skip to content

Commit

Permalink
Update wasm-go.md 可能在windows中出现的一些编译问题
Browse files Browse the repository at this point in the history
可能在windows中出现的一些编译问题
  • Loading branch information
zhangjiahaol authored Nov 15, 2023
1 parent a850efc commit d6c3038
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ tinygo build -o main.wasm -scheduler=none -target=wasi -gc=custom -tags='customm
go mod tidy
tinygo build -o main.wasm -scheduler=none -target=wasi -gc=custom -tags="custommalloc nottinygc_finalizer" ./main.go
```
如果编译出现error: could not find wasm-opt, set the WASMOPT environment variable to override 则需要下载https://github.com/WebAssembly/binaryen/ 里面包含了bin\wasm-opt.exe将这个文件拷贝到tinygo的bin目录下重新编译即可。
如果编译出现error: could not find wasm-opt, set the WASMOPT environment variable to override 则需要下载https://github.com/WebAssembly/binaryen/ 里面包含了bin\wasm-opt.exe将这个文件拷贝到tinygo的bin目录下重新编译即可。 <br />
编译成功会在当前目录下创建文件 main.wasm。这个文件在下面本地调试的例子中也会被用到。<br />在使用云原生网关插件市场的自定义插件功能时,直接上传该文件即可。

## 三、本地调试
Expand Down

0 comments on commit d6c3038

Please sign in to comment.