You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[build] fix EMSDK environment variables when using vcpkg (microsoft#24730)
### Description
<!-- Describe your changes. -->
This PR fixes the EMSDK environment variables when using vcpkg.
If user didn't call any EMSDK script, the `build.py` will still be able
to work because it does the following:
- run `emsdk install <emsdk_version>`
- run `emsdk activate <emsdk_version>`
- (newly added in this PR) run either of the following, capture the
stdout and parse environment variables `EMSDK`, `EMSDK_NODE` and
`EMSDK_PYTHON` and append to the env.
- (Windows) run `cmd /s /c "call .\emsdk_env && set"` to print out all
envvars
- (UNIX) run `sh -c ". ./emsdk_env.sh && printenv"` to print out all
envvars
0 commit comments