Skip to content

Avoid setting EM_CACHE unless we really need to #797

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

Merged
merged 1 commit into from
Apr 26, 2021

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Apr 23, 2021

This avoid polluting the global environment which makes
side-by-side installational of different emscripten version
harder.

See emscripten-core/emscripten#13954

@sbc100 sbc100 force-pushed the avoid_em_cache_env_var branch from 174964b to 646041b Compare April 23, 2021 16:06
@sbc100 sbc100 requested a review from juj April 23, 2021 16:07
@sbc100 sbc100 force-pushed the avoid_em_cache_env_var branch 3 times, most recently from 3b701a4 to 4017340 Compare April 23, 2021 16:13
@sbc100
Copy link
Collaborator Author

sbc100 commented Apr 23, 2021

I verified this locally by installing sdk-fastcomp-1.38.33 and checking that it does at EM_CONFIG to the env whereas for newer versions it doesn't get added.

@sbc100 sbc100 force-pushed the avoid_em_cache_env_var branch from 4017340 to 8fbe634 Compare April 23, 2021 16:14
This avoid polluting the global environment which makes
side-by-side installational of different emscripten version
harder.

See emscripten-core/emscripten#13954
@sbc100 sbc100 force-pushed the avoid_em_cache_env_var branch from 8fbe634 to 15bde98 Compare April 23, 2021 16:15
@sbc100
Copy link
Collaborator Author

sbc100 commented Apr 23, 2021

The other nice thing about this change is that folks like me who regularly switch between emsdk and non-emsdk setups have one less thing to do when we switch.

After this all I really need to do disable emsdk to to run:

$ unset EM_CONFIG

I no longer need to run $ unset EM_CACHE too.

@sbc100 sbc100 merged commit 4282d5d into master Apr 26, 2021
@sbc100 sbc100 deleted the avoid_em_cache_env_var branch April 26, 2021 13:29
sbc100 added a commit that referenced this pull request Apr 27, 2021
When we deactivate a tool we also want to remove its environment
variables.   One driver for this is that modern sdks don't set
`EM_CACHE` whereas old ones did and we want to make sure that
`EM_CACHE` gets unset when folks upgrade (and then re-set if
they downgrade).  See #797.
sbc100 added a commit that referenced this pull request Apr 28, 2021
When we deactivate a tool we also want to remove its environment
variables.   One driver for this is that modern sdks don't set
`EM_CACHE` whereas old ones did and we want to make sure that
`EM_CACHE` gets unset when folks upgrade (and then re-set if
they downgrade).  See #797.
sbc100 added a commit that referenced this pull request Apr 28, 2021
When we deactivate a tool we also want to remove its environment
variables.   One driver for this is that modern sdks don't set
`EM_CACHE` whereas old ones did and we want to make sure that
`EM_CACHE` gets unset when folks upgrade (and then re-set if
they downgrade).  See #797.
sbc100 added a commit that referenced this pull request Apr 28, 2021
When we deactivate a tool we also want to remove its environment
variables.   One driver for this is that modern sdks don't set
`EM_CACHE` whereas old ones did and we want to make sure that
`EM_CACHE` gets unset when folks upgrade (and then re-set if
they downgrade).  See #797.
sbc100 added a commit that referenced this pull request Apr 28, 2021
When we deactivate a tool we also want to remove its environment
variables.   One driver for this is that modern sdks don't set
`EM_CACHE` whereas old ones did and we want to make sure that
`EM_CACHE` gets unset when folks upgrade (and then re-set if
they downgrade).  See #797.
sbc100 added a commit that referenced this pull request Apr 29, 2021
When we deactivate a tool we also want to remove its environment
variables.   One driver for this is that modern sdks don't set
`EM_CACHE` whereas old ones did and we want to make sure that
`EM_CACHE` gets unset when folks upgrade (and then re-set if
they downgrade).  See #797.
radekdoulik referenced this pull request in dotnet/emsdk May 20, 2021
This avoid polluting the global environment which makes
side-by-side installational of different emscripten version
harder.

See emscripten-core/emscripten#13954
radekdoulik referenced this pull request in dotnet/emsdk May 20, 2021
When we deactivate a tool we also want to remove its environment
variables.   One driver for this is that modern sdks don't set
`EM_CACHE` whereas old ones did and we want to make sure that
`EM_CACHE` gets unset when folks upgrade (and then re-set if
they downgrade).  See #797.
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.

3 participants