Meta: Force compilation with DWARF revision 4

We currently don't support DWARF revision 5 and LLVM/Clang might create
such debug info into our binaries in x86_64, which will lead to a crash
in CrashReporter that is unable to parse that information correctly.
This commit is contained in:
Liav A 2022-10-04 18:25:27 +03:00 committed by Andreas Kling
parent 8c9128f36d
commit fb0dee5a54
Notes: sideshowbarker 2024-07-17 07:14:09 +09:00

View File

@ -29,6 +29,9 @@ add_compile_options(-fstack-protector-strong)
add_link_options(-fstack-protector-strong)
add_compile_options(-g1)
# FIXME: Remove this once DWARF revision 5 is supported
add_compile_options(-gdwarf-4)
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
add_compile_options(-Wno-literal-suffix)
add_compile_options(-Wno-maybe-uninitialized)