Title: [244448] trunk
Revision
244448
Author
[email protected]
Date
2019-04-18 20:28:35 -0700 (Thu, 18 Apr 2019)

Log Message

[WinCairo] Non-unified build fails to link Tools
https://bugs.webkit.org/show_bug.cgi?id=196866

Reviewed by Fujii Hironori.

.:

* Source/cmake/OptionsWin.cmake:
Build WebCore as an object library when unified builds are disabled
(and we haven't explicitly asked to build it as a shared library).
This is necessary for two reasons:
- Non-unified WebCore.lib is too large for the MSVC linker to create (>4GB).
- Some WebCore object files are not actually used, but DumpRenderTree and TestRunnerInjectedBundle
  still expect that their symbols will be re-exported via WebKit[Legacy].

Source/WebCore:

* CMakeLists.txt:
Drive-by fix -- don't disable string pooling when building WebCoreTestSupport.
(This should have been part of r235203.)

Modified Paths

Diff

Modified: trunk/ChangeLog (244447 => 244448)


--- trunk/ChangeLog	2019-04-19 02:36:55 UTC (rev 244447)
+++ trunk/ChangeLog	2019-04-19 03:28:35 UTC (rev 244448)
@@ -1,3 +1,18 @@
+2019-04-18  Ross Kirsling  <[email protected]>
+
+        [WinCairo] Non-unified build fails to link Tools
+        https://bugs.webkit.org/show_bug.cgi?id=196866
+
+        Reviewed by Fujii Hironori.
+
+        * Source/cmake/OptionsWin.cmake:
+        Build WebCore as an object library when unified builds are disabled
+        (and we haven't explicitly asked to build it as a shared library).
+        This is necessary for two reasons:
+        - Non-unified WebCore.lib is too large for the MSVC linker to create (>4GB).
+        - Some WebCore object files are not actually used, but DumpRenderTree and TestRunnerInjectedBundle
+          still expect that their symbols will be re-exported via WebKit[Legacy].
+
 2019-04-17  Jer Noble  <[email protected]>
 
         Automatically use ccache when available for Makefile builds

Modified: trunk/Source/WebCore/CMakeLists.txt (244447 => 244448)


--- trunk/Source/WebCore/CMakeLists.txt	2019-04-19 02:36:55 UTC (rev 244447)
+++ trunk/Source/WebCore/CMakeLists.txt	2019-04-19 03:28:35 UTC (rev 244448)
@@ -2113,7 +2113,7 @@
 if (WebCoreTestSupport_OUTPUT_NAME)
     set_target_properties(WebCoreTestSupport PROPERTIES OUTPUT_NAME ${WebCoreTestSupport_OUTPUT_NAME})
     if (MSVC)
-        add_compile_options(/GF- /WX-)
+        add_compile_options(/WX-)
     endif ()
 endif ()
 

Modified: trunk/Source/WebCore/ChangeLog (244447 => 244448)


--- trunk/Source/WebCore/ChangeLog	2019-04-19 02:36:55 UTC (rev 244447)
+++ trunk/Source/WebCore/ChangeLog	2019-04-19 03:28:35 UTC (rev 244448)
@@ -1,3 +1,14 @@
+2019-04-18  Ross Kirsling  <[email protected]>
+
+        [WinCairo] Non-unified build fails to link Tools
+        https://bugs.webkit.org/show_bug.cgi?id=196866
+
+        Reviewed by Fujii Hironori.
+
+        * CMakeLists.txt:
+        Drive-by fix -- don't disable string pooling when building WebCoreTestSupport.
+        (This should have been part of r235203.)
+
 2019-04-18  Commit Queue  <[email protected]>
 
         Unreviewed, rolling out r244434.

Modified: trunk/Source/cmake/OptionsWin.cmake (244447 => 244448)


--- trunk/Source/cmake/OptionsWin.cmake	2019-04-19 02:36:55 UTC (rev 244447)
+++ trunk/Source/cmake/OptionsWin.cmake	2019-04-19 03:28:35 UTC (rev 244448)
@@ -156,6 +156,10 @@
 set(PAL_LIBRARY_TYPE STATIC)
 set(WebKitLegacy_LIBRARY_TYPE SHARED)
 
+if (NOT ENABLE_UNIFIED_BUILDS AND WebCore_LIBRARY_TYPE MATCHES STATIC)
+    set(WebCore_LIBRARY_TYPE OBJECT)
+endif ()
+
 find_package(ICU REQUIRED)
 
 # If <winsock2.h> is not included before <windows.h> redefinition errors occur
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to