Skip to content

[EH] Stop passing -mllvm -exception-model to wasm-ld - #28065

Open
dschuff wants to merge 1 commit into
emscripten-core:mainfrom
dschuff:eh-flags
Open

dschuff wants to merge 1 commit into
emscripten-core:mainfrom
dschuff:eh-flags

Conversation

@dschuff

@dschuff dschuff commented Oct 23, 2026

Copy link
Copy Markdown
Member

After llvm/llvm-project#232977 removed TargetOptions::ExceptionModel, passing -mllvm -exception-model=... to wasm-ld is a no-op. All WebAssembly EH and SjLj passes now read the "exception-model" module flag emitted into the IR by clang at compile time.

After llvm/llvm-project#232977 removed TargetOptions::ExceptionModel, passing -mllvm -exception-model=... to wasm-ld is a no-op. All WebAssembly EH and SjLj passes now read the "exception-model" module flag emitted into the IR by clang at compile time.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request removes the logic in tools/building.py that appends -exception-model flags (such as wasm or emscripten) to the linker flags (lld_flags) based on exception and longjmp settings. I have no feedback to provide as there are no review comments.

@dschuff

dschuff commented Oct 23, 2026

Copy link
Copy Markdown
Member Author

This should wait to land until the aforementioned PR rolls into emscripten-releases and then back into Emscripten's emsdk_version.txt. Since the flags are a no-op, nothing should break when that happens.

@dschuff
dschuff requested a review from aheejin October 23, 2026 22:12
@sbc100

sbc100 commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

Sweet!

This branch has not been deployed

No deployments
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