Description: Workaround Debian bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1016936
 until dwz starts understanding dwarf-5 binaries.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8fc48b94..12d36ba9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -189,6 +189,8 @@ if(BUILD_ENGINE_C AND NOT BUILD_ENGINE_JS)
 
     set(CMAKE_C_COMPILER ${CLANG_EXECUTABLE})
     set(CMAKE_CXX_COMPILER ${CLANG_EXECUTABLE})
+    add_flag_append(CMAKE_C_FLAGS "-gdwarf-4")
+    add_flag_append(CMAKE_CXX_FLAGS "-gdwarf-4")
 endif()
 
 
