Workaround Debian bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1016936
authorDebian Games Team <pkg-games-devel@lists.alioth.debian.org>
Thu, 22 Sep 2022 12:51:50 +0000 (13:51 +0100)
committerGianfranco Costamagna <locutusofborg@debian.org>
Thu, 22 Sep 2022 12:51:50 +0000 (13:51 +0100)
until dwz starts understanding dwarf-5 binaries.

Gbp-Pq: Name dwarf.patch

CMakeLists.txt

index 8fc48b94371b93a589939069dec7ff1a96100aa4..12d36ba9a01bc33ba718df4a9d153a745e370c5d 100644 (file)
@@ -190,6 +190,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()