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

Restore qwebelement rtti #11

Merged
merged 4 commits into from
Jul 9, 2023
Merged

Restore qwebelement rtti #11

merged 4 commits into from
Jul 9, 2023

Conversation

mnutt
Copy link
Member

@mnutt mnutt commented Jul 6, 2023

In 2caecbb we disabled rtti for QWebElement in order to get the build working, but this broke API compatibility for users.

The issue is that QtWebKit exposes runtime type information in its API, but WebKit/WebCore has rtti disabled (via -fno-rtti). With QWebElement calling into WebCore/JSC via evaluateJavaScript, we get linking errors due to missing typeinfo for JSC::SourceProvider.

This PR splits out the code that creates the JSC::SourceProvider into a separate source file (EvaluateJS.cpp) which does not have rtti disabled.

@mnutt mnutt force-pushed the restore-qwebelement-rtti branch from 9223914 to 64055fc Compare July 6, 2023 19:31
@mnutt mnutt merged commit ba8a1bc into master Jul 9, 2023
1 check passed
@mnutt mnutt deleted the restore-qwebelement-rtti branch July 9, 2023 01:32
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.

None yet

1 participant