Title: [189807] trunk
Revision
189807
Author
o...@webkit.org
Date
2015-09-15 08:01:09 -0700 (Tue, 15 Sep 2015)

Log Message

[cmake] Enable debug fission only if it is supported
https://bugs.webkit.org/show_bug.cgi?id=149161

Reviewed by Martin Robinson.

* Source/cmake/OptionsCommon.cmake:

Modified Paths

Diff

Modified: trunk/ChangeLog (189806 => 189807)


--- trunk/ChangeLog	2015-09-15 14:48:41 UTC (rev 189806)
+++ trunk/ChangeLog	2015-09-15 15:01:09 UTC (rev 189807)
@@ -1,3 +1,12 @@
+2015-09-15  Csaba Osztrogonác  <o...@webkit.org>
+
+        [cmake] Enable debug fission only if it is supported
+        https://bugs.webkit.org/show_bug.cgi?id=149161
+
+        Reviewed by Martin Robinson.
+
+        * Source/cmake/OptionsCommon.cmake:
+
 2015-09-14  Alex Christensen  <achristen...@webkit.org>
 
         Progress towards CMake on Mac.

Modified: trunk/Source/cmake/OptionsCommon.cmake (189806 => 189807)


--- trunk/Source/cmake/OptionsCommon.cmake	2015-09-15 14:48:41 UTC (rev 189806)
+++ trunk/Source/cmake/OptionsCommon.cmake	2015-09-15 15:01:09 UTC (rev 189807)
@@ -85,7 +85,11 @@
 
 set(ENABLE_DEBUG_FISSION_DEFAULT OFF)
 if (USE_LD_GOLD AND CMAKE_BUILD_TYPE STREQUAL "Debug")
-    set(ENABLE_DEBUG_FISSION_DEFAULT ON)
+    include(TestCXXAcceptsFlag)
+    CHECK_CXX_ACCEPTS_FLAG(-gsplit-dwarf CXX_ACCEPTS_GSPLIT_DWARF)
+    if (CXX_ACCEPTS_GSPLIT_DWARF)
+        set(ENABLE_DEBUG_FISSION_DEFAULT ON)
+    endif ()
 endif ()
 
 option(DEBUG_FISSION "Use Debug Fission support" ${ENABLE_DEBUG_FISSION_DEFAULT})
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to