Skip to content

Commit

Permalink
[GTK][WPE] Enable debug fission also when -g is present in the flags
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=251685

Reviewed by Adrian Perez de Castro.

* Source/cmake/OptionsCommon.cmake:

Canonical link: https://commits.webkit.org/259957@main
  • Loading branch information
calvaris committed Feb 7, 2023
1 parent 7cc2d22 commit 6f2f2e5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Source/cmake/OptionsCommon.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,9 @@ if (USE_THIN_ARCHIVES)
endif ()

set(ENABLE_DEBUG_FISSION_DEFAULT OFF)
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
check_cxx_compiler_flag(-gsplit-dwarf CXX_COMPILER_SUPPORTS_GSPLIT_DWARF)
if (CXX_COMPILER_SUPPORTS_GSPLIT_DWARF AND LD_SUPPORTS_SPLIT_DEBUG)
set(ENABLE_DEBUG_FISSION_DEFAULT ON)
endif ()
check_cxx_compiler_flag(-gsplit-dwarf CXX_COMPILER_SUPPORTS_GSPLIT_DWARF)
if (CXX_COMPILER_SUPPORTS_GSPLIT_DWARF AND LD_SUPPORTS_SPLIT_DEBUG)
set(ENABLE_DEBUG_FISSION_DEFAULT ON)
endif ()

option(DEBUG_FISSION "Use Debug Fission support" ${ENABLE_DEBUG_FISSION_DEFAULT})
Expand Down

0 comments on commit 6f2f2e5

Please sign in to comment.