mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 17:57:02 +00:00
Update build_pyodide.sh to source emsdk_env.sh conditionally
Add conditional sourcing for emsdk_env.sh
This commit is contained in:
@@ -22,7 +22,8 @@ uv run pyodide xbuildenv install "${PYODIDE_VERSION}"
|
|||||||
uv run pyodide xbuildenv install-emscripten
|
uv run pyodide xbuildenv install-emscripten
|
||||||
|
|
||||||
EMSDK_ROOT="${PYODIDE_XBUILDENV}/emsdk"
|
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
|
which emcc
|
||||||
emcc --version
|
emcc --version
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user