-
Notifications
You must be signed in to change notification settings - Fork 714
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
Use embedded configuration by default #472
Conversation
This change allows emsdk --embdded mode to work out of the box without running emsdk_env.sh. This paves makes it easier to justify using embedded mode by default: emscripten-core/emsdk#472 This is part of a larger plan to avoid using the $HOME directory to store anything at all: #9543
ab49230
to
10acbda
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
This change allows emsdk --embdded mode to work out of the box without running emsdk_env.sh. This paves makes it easier to justify using embedded mode by default: emscripten-core/emsdk#472 This is part of a larger plan to avoid using the $HOME directory to store anything at all: #9543
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general this sounds good, but I worry about the risk. Where can we mention this to users? The emscripten changelog isn't quite right. Maybe just the mailing list?
Also I'd like to see this after tests pass, to make sure I understand what works and what doesn't.
This change allows emsdk --embedded mode to work out of the box without running emsdk_env.sh. This paves makes it easier to justify using embedded mode by default: emscripten-core/emsdk#472 This is part of a larger plan to avoid using the $HOME directory to store anything at all: #9543
cbd49e7
to
f9c2786
Compare
I can't see any reason why the embedded mode isn't always preferable. The emsdk is designed to be used as-is, and per-user customizations don't make sense. I'm hoping if this sicks we can just remove this options completely. This is part of a wider plan to remove the use of the user's HOME directory completely: emscripten-core/emscripten#9543
f9c2786
to
5328ded
Compare
I'm going to write the mailing list about this change now.. and hopefully is now good to go? |
See emscripten-core/emsdk#472 Turns out we were actually depending on the non-embedded config!
See emscripten-core/emsdk#472 Turns out we were actually depending on the non-embedded config!
Fix emcc failure for wasm32. The wasm32 job is currently failing on CI with the error `ERROR: llc executable not found at /usr/bin/llc`. The issue is that emscripten-core/emsdk#472 has changed how emsdk discovers its configuration. We were relying on the global behavior that would use a configuration from the home directory. However, it looks like emsdk is moving away from that approach. This change adds the necessary env var for emcc to find the correct configuration. There are a few alternate approaches this could take. The `--no-embedded` option could be passed to `emsdk activate` to use the old behavior, but it seems like they want to move away from that. Another option is to source `emsdk_env.sh`, which is how these env vars normally get set. I'm not entirely sure how to do that easily in a Dockerfile, though.
embedded mode as been the default since #472 and I included `--no-embedded` as an option during the interim time, but to simply the code and avoid have two modes of operation I think its safe to now remove the non-embedded mode.
embedded mode as been the default since #472 and I included `--no-embedded` as an option during the interim time, but to simply the code and avoid have two modes of operation I think its safe to now remove the non-embedded mode.
embedded mode as been the default since #472 and I included `--no-embedded` as an option during the interim time, but to simply the code and avoid have two modes of operation I think its safe to now remove the non-embedded mode.
embedded mode as been the default since #472 and I included `--no-embedded` as an option during the interim time, but to simply the code and avoid have two modes of operation I think its safe to now remove the non-embedded mode.
I can't see any reason why the embedded mode isn't always preferable.
The emsdk is designed to be used as-is, and per-user customizations
don't make sense.
I'm hoping if this sicks we can just remove this options completely.
This is part of a wider plan to remove the use of the user's HOME
directory completely:
emscripten-core/emscripten#9543