diff --git a/pyodide/build_pyodide.sh b/pyodide/build_pyodide.sh index 853aea60ea..f8d8538767 100755 --- a/pyodide/build_pyodide.sh +++ b/pyodide/build_pyodide.sh @@ -22,7 +22,8 @@ uv run pyodide xbuildenv install "${PYODIDE_VERSION}" uv run pyodide xbuildenv install-emscripten EMSDK_ROOT="${PYODIDE_XBUILDENV}/emsdk" -source "${EMSDK_ROOT}/emsdk_env.sh" +[ -f "${EMSDK_ROOT}/emsdk_env.sh" ] && source "${EMSDK_ROOT}/emsdk_env.sh" +[ -f "${EMSDK_ROOT}/../../emsdk_env.sh" ] && source "${EMSDK_ROOT}/../../emsdk_env.sh" which emcc emcc --version