Title: [233454] trunk
Revision
233454
Author
[email protected]
Date
2018-07-02 18:07:19 -0700 (Mon, 02 Jul 2018)

Log Message

[CMake] Use JOB_POOLS to avoid memory-hungry linker processes running at the same time
https://bugs.webkit.org/show_bug.cgi?id=187254

Reviewed by Michael Catanzaro.

* Source/cmake/WebKitCommon.cmake: Set the maximum number of
concurrent link processes using job pools (four for release builds,
two otherwise) to avoid running out of memory during builds.

Modified Paths

Diff

Modified: trunk/ChangeLog (233453 => 233454)


--- trunk/ChangeLog	2018-07-03 01:03:19 UTC (rev 233453)
+++ trunk/ChangeLog	2018-07-03 01:07:19 UTC (rev 233454)
@@ -1,3 +1,14 @@
+2018-07-02  Adrian Perez de Castro  <[email protected]>
+
+        [CMake] Use JOB_POOLS to avoid memory-hungry linker processes running at the same time
+        https://bugs.webkit.org/show_bug.cgi?id=187254
+
+        Reviewed by Michael Catanzaro.
+
+        * Source/cmake/WebKitCommon.cmake: Set the maximum number of
+        concurrent link processes using job pools (four for release builds,
+        two otherwise) to avoid running out of memory during builds.
+
 2018-07-02  Ryosuke Niwa  <[email protected]>
 
         Repository fix after r233427 and r233443.

Modified: trunk/Source/cmake/WebKitCommon.cmake (233453 => 233454)


--- trunk/Source/cmake/WebKitCommon.cmake	2018-07-03 01:03:19 UTC (rev 233453)
+++ trunk/Source/cmake/WebKitCommon.cmake	2018-07-03 01:07:19 UTC (rev 233454)
@@ -61,6 +61,16 @@
     include(Options${PORT})
 
     # -----------------------------------------------------------------------------
+    # Job pool to avoid running too many memory hungry linker processes
+    # -----------------------------------------------------------------------------
+    if (${CMAKE_BUILD_TYPE} STREQUAL "Release" OR ${CMAKE_BUILD_TYPE} STREQUAL "MinSizeRel")
+        set_property(GLOBAL PROPERTY JOB_POOLS link_pool_jobs=4)
+    else ()
+        set_property(GLOBAL PROPERTY JOB_POOLS link_pool_jobs=2)
+    endif ()
+    set(CMAKE_JOB_POOL_LINK link_pool_jobs)
+
+    # -----------------------------------------------------------------------------
     # Create derived sources directories
     # -----------------------------------------------------------------------------
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to