[GTK][WPE] Enable debug fussion if compiler options contain -g
Created attachment 409679 [details] Patch
I see one immediate problem this change will cause: some Linux distros are building packages with enabled -g and then split debug info into separate package. If -g will now trigger -gsplit-dwarf they'll need to pass DEBUG_FISSION=OFF explicitly to generate usable debug packages
Comment on attachment 409679 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=409679&action=review > Source/cmake/OptionsCommon.cmake:70 > +if (USE_LD_GOLD AND (CMAKE_BUILD_TYPE STREQUAL "Debug" OR "${CMAKE_CXX_FLAGS_RELEASE}" MATCHES "-g")) 1) CMAKE_CXX_FLAGS_RELEASE is used only when CMAKE_BUILD_TYPE == "Release", RelWithDebInfo and MinSizeRel use their own variables. 2) "-g" flag may also be passed via CMAKE_CXX_FLAGS which is applied to all build types 3) "-g" is not the only gcc flag which enables emission of debug info, there are also -g<level> flags and -ggdb and maybe more