From d85ff94f032584cbd44aa16eff7ce44c781fc46f Mon Sep 17 00:00:00 2001 From: Seth Flynn Date: Mon, 22 Dec 2025 03:01:08 -0500 Subject: [PATCH] build(mingw): use dwarf debug info As it turns out, LLDB can load Windows crash dumps! This allows us go back to the regular (better supported) DWARF debuginfo format used by MinGW, as now we have a tool that can both parse those symbols *and* Windows' crash dumps. The biggest advantage here is that once again, MinGW crash dumps can be easily inspected on Linux Signed-off-by: Seth Flynn --- CMakeLists.txt | 9 --------- 1 file changed, 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e3959645..a188f3455 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,15 +79,6 @@ else() if(WIN32) set(CMAKE_EXE_LINKER_FLAGS "-Wl,--stack,8388608 ${CMAKE_EXE_LINKER_FLAGS}") - # Emit PDBs for WinDbg, etc. - add_compile_options($<$,$>:-gcodeview>) - add_link_options($<$,$>:-Wl,--pdb=>) - foreach(lang C CXX) - # Force-enabling this to use generator expressions like TARGET_PDB_FILE - # (and because we can actually emit PDBs) - set("CMAKE_${lang}_LINKER_SUPPORTS_PDB" ON) - endforeach() - # -ffunction-sections and -fdata-sections help reduce binary size # -mguard=cf enables Control Flow Guard # TODO: Look into -gc-sections to further reduce binary size