Skip to content

[docs] Document passing side modules on command line with -sMAIN_MODULE=2 - #27592

Open
sbc100 wants to merge 1 commit into
emscripten-core:mainfrom
sbc100:docs-main-module-autoload
Open

[docs] Document passing side modules on command line with -sMAIN_MODULE=2#27592
sbc100 wants to merge 1 commit into
emscripten-core:mainfrom
sbc100:docs-main-module-autoload

Conversation

@sbc100

@sbc100 sbc100 commented Aug 22, 2026

Copy link
Copy Markdown
Collaborator

Explain how passing side modules on the command line automatically preserves their required symbols in -sMAIN_MODULE=2 mode, and how passing them together with -sAUTOLOAD_DYLIBS=0 avoids startup loading when modules are loaded dynamically via dlopen().

See #27588

…LE=2

Explain how passing side modules on the command line automatically
preserves their required symbols in `-sMAIN_MODULE=2` mode, and how
passing them together with `-sAUTOLOAD_DYLIBS=0` avoids startup
loading when modules are loaded dynamically via `dlopen()`.

See emscripten-core#27588
@sbc100 sbc100 changed the title [docs] Document passing side modules on command line with -sMAIN_MODU… [docs] Document passing side modules on command line with -sMAIN_MODULE=2 Aug 22, 2026
@sbc100
sbc100 requested review from dschuff and kripken August 22, 2026 00:59
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.

1 participant