Skip to content
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

Update flags for getting exception messages in docs #18538

Merged
merged 1 commit into from
Jan 16, 2023

Conversation

thewtex
Copy link
Contributor

@thewtex thewtex commented Jan 16, 2023

-l embind is now preferred over --bind.

Add -s EXPORT_EXCEPTION_HANDLING_HELPERS to export the required symbols, which are now multiple and can vary based on exception handling backend.

@thewtex thewtex force-pushed the exception-message-flags branch from e203d60 to 86b60c9 Compare January 16, 2023 18:14
@@ -170,7 +170,7 @@ returns the ``what`` function call result.
emscripten::function("getExceptionMessage", &getExceptionMessage);
};

This requires using the linker flag ``--bind``.
This requires using the linker flags ``-l embind -s EXPORT_EXCEPTION_HANDLING_HELPERS=1``.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just -sEXPORT_EXCEPTION_HANDLING_HELPERS (no space or =1 needed)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 done!

@thewtex thewtex force-pushed the exception-message-flags branch from 86b60c9 to c098684 Compare January 16, 2023 21:27
`-l embind` is now preferred over `--bind`.

Add `-s EXPORT_EXCEPTION_HANDLING_HELPERS` to export the required symbols, which are now multiple and can vary based on exception handling backend.
@thewtex thewtex force-pushed the exception-message-flags branch from c098684 to b4b9c6d Compare January 16, 2023 22:07
@sbc100 sbc100 merged commit 73ab1c5 into emscripten-core:main Jan 16, 2023
@thewtex thewtex deleted the exception-message-flags branch January 17, 2023 03:16
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