aboutsummaryrefslogtreecommitdiffhomepage
path: root/compileopts/target.go
diff options
context:
space:
mode:
authordeadprogram <[email protected]>2023-10-04 19:26:49 +0200
committerRon Evans <[email protected]>2023-10-04 22:43:14 +0200
commit88b29589d67526320ea400c0abf2110db7a626eb (patch)
tree8620af44c4dbac45547fd7183bb00b05fa52f30f /compileopts/target.go
parent8cbfbcae5a4a2249d0e38973345d04b79a23aa1c (diff)
downloadtinygo-88b29589d67526320ea400c0abf2110db7a626eb.tar.gz
tinygo-88b29589d67526320ea400c0abf2110db7a626eb.zip
targets: increase default stack size to 64k for wasi/wasm targets
Signed-off-by: deadprogram <[email protected]>
Diffstat (limited to 'compileopts/target.go')
-rw-r--r--compileopts/target.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/compileopts/target.go b/compileopts/target.go
index 82ee2e3b4..92561f1e0 100644
--- a/compileopts/target.go
+++ b/compileopts/target.go
@@ -344,7 +344,7 @@ func defaultTarget(goos, goarch, triple string) (*TargetSpec, error) {
spec.Linker = "wasm-ld"
spec.RTLib = "compiler-rt"
spec.Libc = "wasi-libc"
- spec.DefaultStackSize = 1024 * 32 // 32kB
+ spec.DefaultStackSize = 1024 * 64 // 64kB
spec.LDFlags = append(spec.LDFlags,
"--stack-first",
"--no-demangle",