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

Use embedded configuration by default #472

Merged
merged 1 commit into from
May 29, 2020
Merged

Use embedded configuration by default #472

merged 1 commit into from
May 29, 2020

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Apr 15, 2020

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

@sbc100 sbc100 requested review from kripken and juj April 15, 2020 23:44
sbc100 added a commit to emscripten-core/emscripten that referenced this pull request Apr 16, 2020
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
@sbc100 sbc100 force-pushed the embedded_by_default branch from ab49230 to 10acbda Compare April 16, 2020 00:08
Copy link
Collaborator

@juj juj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

sbc100 added a commit to emscripten-core/emscripten that referenced this pull request Apr 16, 2020
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
Copy link
Member

@kripken kripken left a 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.

.circleci/config.yml Outdated Show resolved Hide resolved
sbc100 added a commit to emscripten-core/emscripten that referenced this pull request Apr 17, 2020
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
@sbc100 sbc100 force-pushed the embedded_by_default branch 4 times, most recently from cbd49e7 to f9c2786 Compare May 7, 2020 19:07
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
@sbc100 sbc100 force-pushed the embedded_by_default branch from f9c2786 to 5328ded Compare May 28, 2020 19:04
@sbc100
Copy link
Collaborator Author

sbc100 commented May 28, 2020

I'm going to write the mailing list about this change now.. and hopefully is now good to go?

@sbc100 sbc100 merged commit 858b176 into master May 29, 2020
@sbc100 sbc100 deleted the embedded_by_default branch May 29, 2020 16:49
sbc100 added a commit to emscripten-core/emscripten that referenced this pull request May 29, 2020
See emscripten-core/emsdk#472

Turns out we were actually depending on the non-embedded
config!
sbc100 added a commit to emscripten-core/emscripten that referenced this pull request May 29, 2020
See emscripten-core/emsdk#472

Turns out we were actually depending on the non-embedded
config!
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 10, 2020
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.
sbc100 added a commit that referenced this pull request Jun 24, 2020
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.
sbc100 added a commit that referenced this pull request Jun 24, 2020
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.
sbc100 added a commit that referenced this pull request Jul 20, 2020
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.
sbc100 added a commit that referenced this pull request Jul 20, 2020
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.
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