From fb0dee5a54dbfbec7e805805371198d5f5fc574f Mon Sep 17 00:00:00 2001 From: Liav A Date: Tue, 4 Oct 2022 18:25:27 +0300 Subject: [PATCH] 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. --- Meta/CMake/serenity_compile_options.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Meta/CMake/serenity_compile_options.cmake b/Meta/CMake/serenity_compile_options.cmake index b76bb0c1ed..9ff67a17f6 100644 --- a/Meta/CMake/serenity_compile_options.cmake +++ b/Meta/CMake/serenity_compile_options.cmake @@ -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)