Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Sep 6, 2024

As part of this I also extended the #preprocess directive so it can be used with --extern-pre-js and --extern-post-js as well as the existing supprot for --pre-js and --post-js.

@sbc100 sbc100 requested review from dschuff and kripken September 6, 2024 23:43
@sbc100 sbc100 changed the title Use consistent helper for tests in -sMODULARIZE Use consistent helper for tests that use -sMODULARIZE Sep 7, 2024
// Avoid instantiating the module on pthreads.
if (!isPthread)
#endif
{{{ EXPORT_NAME }}}();
Copy link
Member

Choose a reason for hiding this comment

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

This seems like a general thing that all users will want, but I don't have a good idea for how to provide that. We could make Module() do nothing at all on pthreads, in theory, but that seems risky, even if I can't think of a use for it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, I thank that might make sense, but doesn't have to be part of this change. We can consider that as followup.

As part of this I also extended the `#preprocess` directive so it
can be used with `--extern-pre-js` and `--extern-post-js` as well as the
existing supprot for `--pre-js` and `--post-js`.
@sbc100 sbc100 force-pushed the consistent_modularized_testing branch from a849bc5 to ed9a1bd Compare September 9, 2024 20:28
@sbc100 sbc100 enabled auto-merge (squash) September 9, 2024 20:35
@sbc100 sbc100 merged commit 5fc175d into emscripten-core:main Sep 9, 2024
28 checks passed
@sbc100 sbc100 deleted the consistent_modularized_testing branch September 9, 2024 21:41
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