From ea804359fb7e2a020cb7149c9cbe37daf487677a Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 26 May 2021 12:49:53 +1000 Subject: [PATCH] cxx: force use of DWARF4 for breakpad compatibility --- nc_cxx.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nc_cxx.cmake b/nc_cxx.cmake index b926c72..44a6750 100644 --- a/nc_cxx.cmake +++ b/nc_cxx.cmake @@ -88,6 +88,10 @@ append_compile_flag("-fPIC") # We want a build-id so that we can attribute minidumps append_link_flag("-Wl,--build-id") +# breakpad:XXX Our supported versions of breakpad crash when dumping symbols +# from a DWARF5 binary. Just drop to DWARF4 for the moment. +append_compile_flag("-gdwarf-4") + append_compile_flag("-D__STDC_FORMAT_MACROS") add_definitions("-D_FILE_OFFSET_BITS=64")