Skip to content

Simplify asyncLoad. NFC #23100

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 1 commit into from
Dec 7, 2024
Merged

Simplify asyncLoad. NFC #23100

merged 1 commit into from
Dec 7, 2024

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Dec 6, 2024

Turns out non of the callers were relying the adding of the run dependencies here. There are 4 call sites total:

  • emscripten_async_wget_data: Explicitly sets noRunDep
  • emscripten_wget_data: Explicitly sets noRunDep
  • loadDynamicLibrary: The outer loadDylibs already has an explicit calls to addRunDependency/removeRunDependency.
  • FS_createPreloadedFile: Already has an explicit calls to addRunDependency/removeRunDependency.

Turns out non of the callers were relying the adding of the run
dependencies here.  There are 4 call sites total:

- emscripten_async_wget_data: Explicitly sets noRunDep
- emscripten_wget_data: Explicitly sets noRunDep
- loadDynamicLibrary: The outer loadDylibs already has an explicit calls
  to addRunDependency/removeRunDependency.
- FS_createPreloadedFile: Already has an explicit calls to
  addRunDependency/removeRunDependency.
@sbc100 sbc100 enabled auto-merge (squash) December 7, 2024 00:32
@sbc100
Copy link
Collaborator Author

sbc100 commented Dec 7, 2024

Landing TBR. Hopefully this is a completely straight forward change and I wan to unblock testing / upload / reviewing followups.

@sbc100 sbc100 disabled auto-merge December 7, 2024 19:28
@sbc100 sbc100 merged commit 1ddef04 into emscripten-core:main Dec 7, 2024
26 of 28 checks passed
@sbc100 sbc100 deleted the asyncLoad branch December 7, 2024 19:28
@kripken
Copy link
Member

kripken commented Dec 9, 2024

Nice!

hedwigz pushed a commit to hedwigz/emscripten that referenced this pull request Dec 18, 2024
Turns out non of the callers were relying the adding of the run
dependencies here. There are 4 call sites total:

- emscripten_async_wget_data: Explicitly sets noRunDep
- emscripten_wget_data: Explicitly sets noRunDep
- loadDynamicLibrary: The outer loadDylibs already has an explicit calls
to addRunDependency/removeRunDependency.
- FS_createPreloadedFile: Already has an explicit calls to
addRunDependency/removeRunDependency.
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