Title: [238029] trunk/Source/WTF
- Revision
- 238029
- Author
- [email protected]
- Date
- 2018-11-09 07:30:43 -0800 (Fri, 09 Nov 2018)
Log Message
[WTF] Changes in bug 188867 break non-Linux Unix builds
https://bugs.webkit.org/show_bug.cgi?id=191380
The intention of 188867 was to split out platform-specific
heap query/release code. Any unsupported platform
would use a generic, no-op stub. However, wtf/PlatformGTK.cmake
ended up sending all non-Linux platforms through the Linux
implementation, which breaks the build for those platforms.
This includes any user of the GTK target which is not Linux,
such as the *BSDs, Solaris, etc.
Patch by Jim Mason <[email protected]> on 2018-11-09
Reviewed by Yusuke Suzuki.
* wtf/PlatformGTK.cmake: Updated to include Linux-specific
code only for Linux; all other platforms use the generic stub.
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (238028 => 238029)
--- trunk/Source/WTF/ChangeLog 2018-11-09 15:28:55 UTC (rev 238028)
+++ trunk/Source/WTF/ChangeLog 2018-11-09 15:30:43 UTC (rev 238029)
@@ -1,3 +1,21 @@
+2018-11-09 Jim Mason <[email protected]>
+
+ [WTF] Changes in bug 188867 break non-Linux Unix builds
+ https://bugs.webkit.org/show_bug.cgi?id=191380
+
+ The intention of 188867 was to split out platform-specific
+ heap query/release code. Any unsupported platform
+ would use a generic, no-op stub. However, wtf/PlatformGTK.cmake
+ ended up sending all non-Linux platforms through the Linux
+ implementation, which breaks the build for those platforms.
+ This includes any user of the GTK target which is not Linux,
+ such as the *BSDs, Solaris, etc.
+
+ Reviewed by Yusuke Suzuki.
+
+ * wtf/PlatformGTK.cmake: Updated to include Linux-specific
+ code only for Linux; all other platforms use the generic stub.
+
2018-11-06 Geoffrey Garen <[email protected]>
Removed mbmalloc target from WTF
Modified: trunk/Source/WTF/wtf/PlatformGTK.cmake (238028 => 238029)
--- trunk/Source/WTF/wtf/PlatformGTK.cmake 2018-11-09 15:28:55 UTC (rev 238028)
+++ trunk/Source/WTF/wtf/PlatformGTK.cmake 2018-11-09 15:30:43 UTC (rev 238029)
@@ -8,10 +8,14 @@
glib/GUniquePtr.h
glib/RunLoopSourcePriority.h
glib/WTFGType.h
-
- linux/CurrentProcessMemoryStatus.h
)
+if (CMAKE_SYSTEM_NAME MATCHES "Linux")
+ list(APPEND WTF_PUBLIC_HEADERS
+ linux/CurrentProcessMemoryStatus.h
+ )
+endif ()
+
list(APPEND WTF_SOURCES
UniStdExtras.cpp
@@ -22,10 +26,6 @@
glib/GRefPtr.cpp
glib/RunLoopGLib.cpp
- linux/CurrentProcessMemoryStatus.cpp
- linux/MemoryFootprintLinux.cpp
- linux/MemoryPressureHandlerLinux.cpp
-
text/unix/TextBreakIteratorInternalICUUnix.cpp
unix/CPUTimeUnix.cpp
@@ -32,6 +32,19 @@
unix/LanguageUnix.cpp
)
+if (CMAKE_SYSTEM_NAME MATCHES "Linux")
+ list(APPEND WTF_SOURCES
+ linux/CurrentProcessMemoryStatus.cpp
+ linux/MemoryFootprintLinux.cpp
+ linux/MemoryPressureHandlerLinux.cpp
+ )
+else ()
+ list(APPEND WTF_SOURCES
+ generic/MemoryFootprintGeneric.cpp
+ generic/MemoryPressureHandlerGeneric.cpp
+ )
+endif ()
+
list(APPEND WTF_LIBRARIES
${CMAKE_THREAD_LIBS_INIT}
${GLIB_GIO_LIBRARIES}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes