Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Try fix WASM build with Py_DEBUG
  • Loading branch information
XuehaiPan committed Apr 1, 2025
commit 01a8f944b88456816ebae152d5917db702e3e971
9 changes: 8 additions & 1 deletion Tools/wasm/wasm_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,14 @@ def _check_wasi() -> None:
"--wasm max-wasm-stack=16777216 "
"--wasi preview2 "
"--dir {srcdir}::/ "
"--env PYTHONPATH=/{relbuilddir}/build/lib.wasi-wasm32-{version}:/Lib"
"--env PYTHONPATH="
+ ":".join(
(
"/{relbuilddir}/build/lib.wasi-wasm32-{version}",
"/{relbuilddir}/build/lib.wasi-wasm32-{version}-pydebug",
"/Lib",
)
)
),
"PATH": [WASI_SDK_PATH / "bin", os.environ["PATH"]],
},
Expand Down
Loading