Skip to content

Commit

Permalink
Merge pull request #783 from matm/fix/tinygo-template
Browse files Browse the repository at this point in the history
fix: working tinygo target.json
  • Loading branch information
aduros authored Dec 11, 2024
2 parents 5d31a08 + c98770e commit f5acbb3
Showing 1 changed file with 27 additions and 22 deletions.
49 changes: 27 additions & 22 deletions cli/assets/templates/go/target.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,29 @@
{
"llvm-target": "wasm32--wasi",
"build-tags": [ "tinygo.wasm" ],
"goos": "js",
"goarch": "wasm",
"linker": "wasm-ld",
"libc": "wasi-libc",
"cflags": [
"--target=wasm32--wasi",
"--sysroot={root}/lib/wasi-libc/sysroot",
"-Oz"
],
"ldflags": [
"--allow-undefined",
"--no-demangle",
"--import-memory",
"--initial-memory=65536",
"--max-memory=65536",
"--stack-first",
"-zstack-size=14752",
"--strip-all"
],
"wasm-abi": "js"
"llvm-target": "wasm32-unknown-unknown",
"cpu": "generic",
"features": "+mutable-globals,+nontrapping-fptoint,+sign-ext,+bulk-memory",
"build-tags": [
"tinygo.wasm",
"wasm_unknown"
],
"goos": "linux",
"goarch": "arm",
"linker": "wasm-ld",
"rtlib": "compiler-rt",
"scheduler": "none",
"cflags": [
"-mno-bulk-memory",
"-mnontrapping-fptoint",
"-msign-ext"
],
"ldflags": [
"--allow-undefined",
"--no-demangle",
"--import-memory",
"--initial-memory=65536",
"--max-memory=65536",
"--stack-first",
"--no-entry",
"-zstack-size=14752"
]
}

0 comments on commit f5acbb3

Please sign in to comment.