Skip to content

Commit 01a8f94

Browse files
committed
Try fix WASM build with Py_DEBUG
1 parent 15e9149 commit 01a8f94

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Tools/wasm/wasm_build.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,14 @@ def _check_wasi() -> None:
332332
"--wasm max-wasm-stack=16777216 "
333333
"--wasi preview2 "
334334
"--dir {srcdir}::/ "
335-
"--env PYTHONPATH=/{relbuilddir}/build/lib.wasi-wasm32-{version}:/Lib"
335+
"--env PYTHONPATH="
336+
+ ":".join(
337+
(
338+
"/{relbuilddir}/build/lib.wasi-wasm32-{version}",
339+
"/{relbuilddir}/build/lib.wasi-wasm32-{version}-pydebug",
340+
"/Lib",
341+
)
342+
)
336343
),
337344
"PATH": [WASI_SDK_PATH / "bin", os.environ["PATH"]],
338345
},

0 commit comments

Comments
 (0)