Skip to content

Make sure -sSIDE_MODULE=1 passes --whole-archive to linker - #27430

Open
hoodmane wants to merge 1 commit into
emscripten-core:mainfrom
hoodmane:side-module-1-whole-archive
Open

Make sure -sSIDE_MODULE=1 passes --whole-archive to linker#27430
hoodmane wants to merge 1 commit into
emscripten-core:mainfrom
hoodmane:side-module-1-whole-archive

Conversation

@hoodmane

Copy link
Copy Markdown
Collaborator

This fixes a regression introduced in #25930. Closes #27403.

@hoodmane

Copy link
Copy Markdown
Collaborator Author

Well that doesn't pass CI...

@sbc100

sbc100 commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

So you are suggesting the -sSIDE_MODULE=1 should use --whole-archive and -sSIDE_MODULE=2 should not. That does indeed seem reasonable to me.

What kind of side modules are you building that require this? Could you switch to just using -shared instead? We are trying to make the semantics of -shared march the behaviour on native platforms.

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.

Trouble with emcc 6.0.0 from #25930

2 participants