Skip to content

Commit

Permalink
add missing wasi flag to build go plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Zwiterrion committed Feb 19, 2024
1 parent 778e0f7 commit 726bb97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wasmo",
"version": "1.0.6",
"version": "1.0.8",
"main": "index.js",
"license": "MIT",
"scripts": {
Expand Down
5 changes: 2 additions & 3 deletions server/services/compiler/go.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ module.exports = options => new Compiler({
"go get github.com/extism/go-pdk",
"go get github.com/buger/jsonparser",
"go mod tidy",
options => `tinygo build ${options.isReleaseBuild ? '--no-debug ' : ''}-o ${options.wasmName}.wasm `
],
withWasi: "-target=wasi"
options => `tinygo build ${options.isReleaseBuild ? '--no-debug ' : ''}-o ${options.wasmName}.wasm -target=wasi `
]
})

0 comments on commit 726bb97

Please sign in to comment.