File: dwarf.patch

package info (click to toggle)
hedgewars 1.0.2-13
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 219,164 kB
  • sloc: pascal: 54,829; cpp: 27,221; ansic: 22,809; java: 8,210; haskell: 6,797; xml: 3,076; sh: 580; objc: 113; python: 105; makefile: 32
file content (16 lines) | stat: -rw-r--r-- 535 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
@@ -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()