Title: [169157] trunk
- Revision
- 169157
- Author
- g...@gnome.org
- Date
- 2014-05-21 06:08:35 -0700 (Wed, 21 May 2014)
Log Message
[CMake] Support building with Debug Fission
https://bugs.webkit.org/show_bug.cgi?id=131177
Reviewed by Philippe Normand.
* Source/cmake/OptionsCommon.cmake: add a DEBUG_FISSION option to enable usage
of http://gcc.gnu.org/wiki/DebugFission.
Modified Paths
Diff
Modified: trunk/ChangeLog (169156 => 169157)
--- trunk/ChangeLog 2014-05-21 12:01:42 UTC (rev 169156)
+++ trunk/ChangeLog 2014-05-21 13:08:35 UTC (rev 169157)
@@ -1,3 +1,13 @@
+2014-05-20 Gustavo Noronha Silva <g...@gnome.org>
+
+ [CMake] Support building with Debug Fission
+ https://bugs.webkit.org/show_bug.cgi?id=131177
+
+ Reviewed by Philippe Normand.
+
+ * Source/cmake/OptionsCommon.cmake: add a DEBUG_FISSION option to enable usage
+ of http://gcc.gnu.org/wiki/DebugFission.
+
2014-05-20 Carlos Garcia Campos <cgar...@igalia.com>
[GTK] Rename translation domain as WebKit2GTK-3.0
Modified: trunk/Source/cmake/OptionsCommon.cmake (169156 => 169157)
--- trunk/Source/cmake/OptionsCommon.cmake 2014-05-21 12:01:42 UTC (rev 169156)
+++ trunk/Source/cmake/OptionsCommon.cmake 2014-05-21 13:08:35 UTC (rev 169157)
@@ -31,7 +31,18 @@
if (CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} -fno-exceptions -fno-strict-aliasing")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-exceptions -fno-strict-aliasing -fno-rtti")
+endif ()
+option(DEBUG_FISSION "Use Debug Fission support")
+if (DEBUG_FISSION)
+ execute_process(COMMAND ${CMAKE_C_COMPILER} -fuse-ld=gold -Wl,--version ERROR_QUIET OUTPUT_VARIABLE LD_VERSION)
+ if (NOT "${LD_VERSION}" MATCHES "GNU gold")
+ message(FATAL_ERROR "Need GNU gold linker for Debug Fission support")
+ endif ()
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -gsplit-dwarf -fuse-ld=gold")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -gsplit-dwarf -fuse-ld=gold")
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--gdb-index")
+ set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--gdb-index")
endif ()
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes