Skip to content

[test] Remove stale STRICT-only -lhtml5/-lGL workarounds in MAIN_MODULE tests - #28456

Merged
juj merged 1 commit into
emscripten-core:mainfrom
juj:remove_strict_main_module_lib_workarounds
Dec 1, 2026
Merged

juj merged 1 commit into
emscripten-core:mainfrom
juj:remove_strict_main_module_lib_workarounds

Conversation

@juj

@juj juj commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

test_pthread_dylink_main_module_1 and test_gl_main_module passed -lhtml5 and -lGL only under -sSTRICT, with a TODO noting that the flag was required in STRICT mode but caused duplicate symbol errors otherwise.

Neither half of that is true any more: -sSTRICT -sMAIN_MODULE=1 links the automatic system libraries without the explicit flag, and since #25449 tools/link.py skips system libraries that the user already passed, so an explicit -lhtml5/-lGL no longer produces duplicate symbols either.

See #24436.

@sbc100 sbc100 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice!

@juj
juj enabled auto-merge (squash) November 30, 2026 22:16
…LE tests

test_pthread_dylink_main_module_1 and test_gl_main_module passed -lhtml5
and -lGL only under -sSTRICT, with a TODO noting that the flag was
required in STRICT mode but caused duplicate symbol errors otherwise.

Neither half of that is true any more: -sSTRICT -sMAIN_MODULE=1 links the
automatic system libraries without the explicit flag, and since emscripten-core#25449
tools/link.py skips system libraries that the user already passed, so an
explicit -lhtml5/-lGL no longer produces duplicate symbols either.

See emscripten-core#24436.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@juj
juj force-pushed the remove_strict_main_module_lib_workarounds branch from 9173f66 to 0687e7f Compare December 1, 2026 10:50
@juj
juj merged commit b951f35 into emscripten-core:main Dec 1, 2026
44 checks passed
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