Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(exec-env): set non-legacy environment variables #11

Merged
merged 1 commit into from
Aug 23, 2023
Merged

feat(exec-env): set non-legacy environment variables #11

merged 1 commit into from
Aug 23, 2023

Conversation

bryan-hoang
Copy link
Contributor

When I tried using emsdk installed by the plugin to install the latest version of emcc (3.1.44), I noticed warnings being printed for legacy environment variables being used. Setting the recommended environment variables based on the old ones set by the plugin does the trick.

$ emcc --check
legacy environment variable found: `LLVM`.  Please switch to using `EM_LLVM_ROOT` instead`
legacy environment variable found: `BINARYEN`.  Please switch to using `EM_BINARYEN_ROOT` instead`
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.44 (bec42dac7873903d09d713963e34020c22a8bd2d)
shared:INFO: (Emscripten: Running sanity checks)
$ EM_LLVM_ROOT=$LLVM EM_BINARYEN_ROOT=$BINARYEN emcc --check
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.44 (bec42dac7873903d09d713963e34020c22a8bd2d)
shared:INFO: (Emscripten: Running sanity checks)

When I tried using `emsdk` installed by the plugin to install the latest
version of `emcc` (3.1.44), I noticed warnings being printed for legacy
environment variables being used. Setting the recommended environment
variables based on the old ones set by the plugin does the trick.

```console
$ emcc --check
legacy environment variable found: `LLVM`.  Please switch to using `EM_LLVM_ROOT` instead`
legacy environment variable found: `BINARYEN`.  Please switch to using `EM_BINARYEN_ROOT` instead`
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.44 (bec42dac7873903d09d713963e34020c22a8bd2d)
shared:INFO: (Emscripten: Running sanity checks)
$ EM_LLVM_ROOT=$LLVM EM_BINARYEN_ROOT=$BINARYEN emcc --check
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.44 (bec42dac7873903d09d713963e34020c22a8bd2d)
shared:INFO: (Emscripten: Running sanity checks)
```
@RobLoach
Copy link
Owner

Thanks a lot for catching this one.

@RobLoach RobLoach merged commit 120fa2c into RobLoach:master Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants