-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Better message when a side module needs exceptions #9698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ns. If a side module wants exceptions, the main module must be built to support that. Helps #9691
|
review ping @sbc100 |
sbc100
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests seems rather long.. but I don't remember if we have helpers to make that kind of things easier to test.
|
Yeah, not sure there's a shorter way. We don't have many such tests in other. @sbc100 did you see my question in the PR title about EXPORT_ALL? |
|
I wasn't aware of any differences between EXPORT_ALL with llvm backend vs fastcomp? or are you seeing the same issue with fastcomp? |
|
It doesn't look related to the backend, same on fastcomp. I investigated a bit more and opened #9793 |
) The main module needs to be built with exceptions support for a side module to use it, both for system libs and for the current JS support. This informs users they need to do that if a side module throws and the main wasn't built properly to support that. Helps emscripten-core#9691
The main module needs to be built with exceptions support for a side module to use it, both for system libs and for the current JS support. This informs users they need to do that if a side module throws and the main wasn't built properly to support that.
Helps #9691
Btw @sbc100 I noticed while writing this patch that
EXPORT_ALLis needed for main module to add the JS glue code to where it can be imported from side modules. I was surprised we don't enable that flag by default, maybe I'm missing something?