Skip to content

Commit a5af5c8

Browse files
committed
Try increase stack size
1 parent bc0c675 commit a5af5c8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Tools/wasm/wasi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def configure_wasi_python(context, working_dir):
224224
args = {"GUEST_DIR": "/",
225225
"HOST_DIR": CHECKOUT,
226226
"ENV_VAR_NAME": "PYTHONPATH",
227-
"ENV_VAR_VALUE": f"/{sysconfig_data}:/Lib",
227+
"ENV_VAR_VALUE": f"/{sysconfig_data}",
228228
"PYTHON_WASM": working_dir / "python.wasm"}
229229
# Check dynamically for wasmtime in case it was specified manually via
230230
# `--host-runner`.
@@ -296,7 +296,7 @@ def main():
296296
# Make sure the stack size will work for a pydebug
297297
# build.
298298
# Use 16 MiB stack.
299-
"--wasm max-wasm-stack=16777216 "
299+
"--wasm max-wasm-stack=33554432 "
300300
# Enable thread support; causes use of preview1.
301301
#"--wasm threads=y --wasi threads=y "
302302
# Map the checkout to / to load the stdlib from /Lib.

Tools/wasm/wasm_build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ def _check_wasi() -> None:
329329
# workaround for https://github.com/python/cpython/issues/95952
330330
"HOSTRUNNER": (
331331
"wasmtime run "
332-
"--wasm max-wasm-stack=16777216 "
332+
"--wasm max-wasm-stack=33554432 "
333333
"--wasi preview2 "
334334
"--dir {srcdir}::/ "
335335
"--env PYTHONPATH="

0 commit comments

Comments
 (0)