Skip to content

Allow passing --support-longjmp flag to embuilder#26515

Closed
ryanking13 wants to merge 2 commits intoemscripten-core:mainfrom
ryanking13:side-module-longjmp
Closed

Allow passing --support-longjmp flag to embuilder#26515
ryanking13 wants to merge 2 commits intoemscripten-core:mainfrom
ryanking13:side-module-longjmp

Conversation

@ryanking13
Copy link
Contributor

Some ports (freetype, libpng, ...) output different lib names based on whether the SUPPORT_LONGJMP flag is set. It would be useful to set this flag in embuilder so users can build the exact version of the library that they want to use.

embuilder --support-longjmp=wasm build freetype

@sbc100
Copy link
Collaborator

sbc100 commented Mar 21, 2026

The way to get variations in ports is to create "variants". Then you can name those variants on the embuilder command line.

For example you can do ./embuilder build freetype or ./embuilder build freetype-legacysjlj. See

variants = {'freetype-legacysjlj': {'SUPPORT_LONGJMP': 'wasm', 'WASM_LEGACY_EXCEPTIONS': 1}}

@ryanking13
Copy link
Contributor Author

Oh, I see. I wasn't aware that I can build variants like that. Thanks!

@ryanking13 ryanking13 closed this Mar 22, 2026
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