Skip to content

Commit 732ea14

Browse files
committed
Try increase stack size
1 parent a5af5c8 commit 732ea14

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

configure

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1638,7 +1638,7 @@ then
16381638
dnl TODO: support other WASI runtimes
16391639
dnl wasmtime starts the process with "/" as CWD. For OOT builds add the
16401640
dnl directory containing _sysconfigdata to PYTHONPATH.
1641-
[WASI], [HOSTRUNNER='wasmtime run --wasm max-wasm-stack=16777216 --wasi preview2=n --env PYTHONPATH=/$(shell realpath --relative-to $(abs_srcdir) $(abs_builddir))/$(shell cat pybuilddir.txt):/Lib --dir $(srcdir)::/'],
1641+
[WASI], [HOSTRUNNER='wasmtime run --wasm max-wasm-stack=33554432 --wasi preview2=n --env PYTHONPATH=/$(shell realpath --relative-to $(abs_srcdir) $(abs_builddir))/$(shell cat pybuilddir.txt):/Lib --dir $(srcdir)::/'],
16421642
[HOSTRUNNER='']
16431643
)
16441644
fi
@@ -2420,7 +2420,7 @@ AS_CASE([$ac_sys_system],
24202420
dnl gh-117645: Set the memory size to 40 MiB, the stack size to 16 MiB,
24212421
dnl and move the stack first.
24222422
dnl https://github.com/WebAssembly/wasi-libc/issues/233
2423-
AS_VAR_APPEND([LDFLAGS_NODIST], [" -z stack-size=16777216 -Wl,--stack-first -Wl,--initial-memory=41943040"])
2423+
AS_VAR_APPEND([LDFLAGS_NODIST], [" -z stack-size=33554432 -Wl,--stack-first -Wl,--initial-memory=41943040"])
24242424
]
24252425
)
24262426

0 commit comments

Comments
 (0)