Skip to content

Do not require ENVIRONMENT=node,worker for node+pthreads #14151

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 4 commits into from
May 13, 2021
Merged

Conversation

kripken
Copy link
Member

@kripken kripken commented May 11, 2021

Allow just setting ENVIRONMENT=node in combination with pthreads, as
that is unambiguous, and should not be broken.

Perhaps we should do the same with pthreads outside of node, however
because of the node support code it is trivial to do it in node. I suspect it
would be more work otherwise.

Fixes #14134

cc @RReverser

@RReverser
Copy link
Collaborator

Perhaps we should do the same with pthreads outside of node

Ohh that sounds like a great idea - fewer errors that tell you to enable options, and more of just doing the right thing where it's already unambiguous is definitely a DX improvement.

@kripken kripken merged commit f33ac00 into main May 13, 2021
@kripken kripken deleted the node-worker branch May 13, 2021 20:50
RReverser added a commit to RReverser/emscripten that referenced this pull request Jun 9, 2025
RReverser added a commit to RReverser/emscripten that referenced this pull request Jun 9, 2025
RReverser added a commit that referenced this pull request Jun 10, 2025
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.

Warn about -s ENVIRONMENT=node + pthreads
2 participants