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

Fix for SINGLE_FILE + sync compilation + missing atob #20587

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Nov 1, 2023

In this configuration the atob polfill is required but was not being installed until after createWasm which (in the case of SINGLE_FILE) depends on atob.

See #20349

@@ -8885,7 +8885,11 @@ def do_test(cmd):

@requires_v8
def test_single_file_shell(self):
self.do_runf('hello_world.c', emcc_args=['-sSINGLE_FILE'])
Copy link
Member

Choose a reason for hiding this comment

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

How did this pass before? requires_v8 should have run the test in v8, and without building with ENVIRONMENT=shell that should have failed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

requires_v8 injects -sENVRIONMENT=shell.. but in this case I thought it better to be explicit.. maybe not ?

Copy link
Member

Choose a reason for hiding this comment

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

In that case I'd remove it. It confused me, and also it would be confusing in the logging to have the flag appear twice.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

In this configuration the `atob` polfill is required but was not being
installed until after `createWasm` which (in the case of SINGLE_FILE)
depends on `atob`.

See emscripten-core#20349
@sbc100 sbc100 requested a review from kripken November 1, 2023 01:08
@sbc100 sbc100 enabled auto-merge (squash) November 1, 2023 01:09
@sbc100 sbc100 disabled auto-merge November 1, 2023 04:45
@sbc100 sbc100 merged commit 4de9942 into emscripten-core:main Nov 1, 2023
25 of 27 checks passed
@sbc100 sbc100 deleted the single_file_sync_compile branch November 1, 2023 04:45
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