mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-06 05:48:01 +02:00
cmake: use -gdwarf-2
GCC 10.2.0 complains on opensuse mingw builds, ex: disable-crash-handling.c: error: STABS debugging information is obsolete and not supported anymore [-Werror] According to https://gitlab.freedesktop.org/dbus/dbus/-/issues/133#note_129599, -gdwarf-2 is the second best option. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
505233a57f
commit
c79d428564
1 changed files with 2 additions and 2 deletions
|
|
@ -376,8 +376,8 @@ string(APPEND CMAKE_CXX_FLAGS " ${WARNINGS_CXXFLAGS}")
|
|||
|
||||
# let wine be able to show file and lines in backtrace
|
||||
if(DBUS_USE_WINE)
|
||||
string(APPEND CMAKE_C_FLAGS " -gstabs")
|
||||
string(APPEND CMAKE_CXX_FLAGS " -gstabs")
|
||||
string(APPEND CMAKE_C_FLAGS " -gdwarf-2")
|
||||
string(APPEND CMAKE_CXX_FLAGS " -gdwarf-2")
|
||||
endif()
|
||||
|
||||
if(UNIX AND NOT DBUS_DISABLE_ASSERT)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue