Skip to content

Commit b252f18

Browse files
committed
compileroptions.cmake: force the usage of DWARF 4 for clang-14
1 parent bbfbc06 commit b252f18

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cmake/compileroptions.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
5656
# work around performance regression - see https://github.com/llvm/llvm-project/issues/53555
5757
add_compile_options(-mllvm -inline-deferral)
5858
endif()
59+
60+
# use force DWARF 4 debug format since not all tools might be able to handle DWARF 5 yet - e.g. valgrind on ubuntu 20.04
61+
add_compile_options(-gdwarf-4)
5962
endif()
6063

6164
add_compile_options_safe(-Wno-documentation-unknown-command)

0 commit comments

Comments
 (0)