Title: [212155] trunk
Revision
212155
Author
bb...@apple.com
Date
2017-02-10 15:14:39 -0800 (Fri, 10 Feb 2017)

Log Message

Add basic debugging macros for CMake
https://bugs.webkit.org/show_bug.cgi?id=161538

Reviewed by Michael Catanzaro.

It's useful to be able to dump the state of everything when debugging
CMake build problems, especially when they happen on EWS (but not locally).

Start with macros for:
    - dumping out all CMake variables
    - dumping all executed commands (by turning off pretty-printing)

* Source/cmake/WebKitMacros.cmake:

Modified Paths

Diff

Modified: trunk/ChangeLog (212154 => 212155)


--- trunk/ChangeLog	2017-02-10 23:09:45 UTC (rev 212154)
+++ trunk/ChangeLog	2017-02-10 23:14:39 UTC (rev 212155)
@@ -1,3 +1,19 @@
+2017-02-10  Brian Burg  <bb...@apple.com>
+
+        Add basic debugging macros for CMake
+        https://bugs.webkit.org/show_bug.cgi?id=161538
+
+        Reviewed by Michael Catanzaro.
+
+        It's useful to be able to dump the state of everything when debugging
+        CMake build problems, especially when they happen on EWS (but not locally).
+
+        Start with macros for:
+            - dumping out all CMake variables
+            - dumping all executed commands (by turning off pretty-printing)
+
+        * Source/cmake/WebKitMacros.cmake:
+
 2017-02-09  Alex Christensen  <achristen...@webkit.org>
 
         Build libwebrtc on bots without using it yet

Modified: trunk/Source/cmake/WebKitMacros.cmake (212154 => 212155)


--- trunk/Source/cmake/WebKitMacros.cmake	2017-02-10 23:09:45 UTC (rev 212154)
+++ trunk/Source/cmake/WebKitMacros.cmake	2017-02-10 23:14:39 UTC (rev 212155)
@@ -430,3 +430,15 @@
     endforeach ()
 
 endmacro()
+
+# Helper macros for debugging CMake problems.
+macro(WEBKIT_DEBUG_DUMP_COMMANDS)
+    set(CMAKE_VERBOSE_MAKEFILE ON)
+endmacro()
+
+macro(WEBKIT_DEBUG_DUMP_VARIABLES)
+    set_cmake_property(_variableNames VARIABLES)
+    foreach (_variableName ${_variableNames})
+       message(STATUS "${_variableName}=${${_variableName}}")
+    endforeach ()
+endmacro()
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to