Skip to content

Mark --preload-file as incompatible with MINIMAL_RUNTIME. NFC #24910

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
Aug 12, 2025

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Aug 11, 2025

The file preloading mechanism relies on either Module.preRun or Module.calledRun, neither of which are available with MINIMAL_RUNTIME.

@sbc100 sbc100 requested a review from kripken August 11, 2025 23:17
@sbc100 sbc100 force-pushed the preload_minimal branch 4 times, most recently from 0411c0a to 4f8943c Compare August 12, 2025 15:28
The file preloading mechanism relies on either `Module.preRun` or
`Module.calledRun`, neither of which are available with
`MINIMAL_RUNTIME`.

The FS_createPreloadedFile fundamtentenally does not work yet under
`MINIMAL_RUNTIME` since it depends on the `readAsync` runtime functions
which does not exist in that mode.
@sbc100 sbc100 merged commit 59cb965 into emscripten-core:main Aug 12, 2025
3 of 13 checks passed
@sbc100 sbc100 deleted the preload_minimal branch August 12, 2025 16:49
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