summarylogtreecommitdiffstats
path: root/qt5-webkit-gcc16-sourceprovider-rtti.patch
blob: a84243a86143f90157f090be28354ec0a32b2dda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- a/Source/JavaScriptCore/PlatformQt.cmake
+++ b/Source/JavaScriptCore/PlatformQt.cmake
@@ -30,3 +30,14 @@
         inspector/JSGlobalObjectInspectorController.cpp
     )
 endif ()
+
+# SourceProvider needs RTTI so its typeinfo is available to WebKit files
+# compiled with -frtti (e.g. qwebelement.cpp). Without this, GCC 16+
+# refuses to link because the base-class typeinfo is missing.
+if (COMPILER_IS_GCC_OR_CLANG)
+    set_source_files_properties(
+        parser/SourceProvider.cpp
+    PROPERTIES
+        COMPILE_FLAGS -frtti
+    )
+endif ()