Skip to content

Commit 055ba9e

Browse files
committed
Remove -fdebug-types-section compiler flag for debug_fission
gdb (and lldb) fail to recognize symbol files produced with -fdebug-types-section and -gsplit-dwarf. It comlains about dwarf version being 0 in dwo files and rejects them.
1 parent 91d1f15 commit 055ba9e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Source/cmake/OptionsCommon.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,10 @@ if (DEBUG_FISSION)
194194
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--gdb-index")
195195
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--gdb-index")
196196
endif ()
197+
if (WTF_CPU_ARM)
198+
string(REPLACE "-fdebug-types-section" "" CMAKE_C_FLAGS ${CMAKE_C_FLAGS})
199+
string(REPLACE "-fdebug-types-section" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
200+
endif ()
197201
endif ()
198202

199203
set(GCC_OFFLINEASM_SOURCE_MAP_DEFAULT OFF)

0 commit comments

Comments
 (0)