From c9ed0ae8cdb73ab12c6f52c78c55888420f069fd Mon Sep 17 00:00:00 2001 From: Maxim Biro Date: Sat, 4 Mar 2017 03:39:31 -0500 Subject: Show source file name and line number on crash --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 4544a91a..2d7fcece 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,6 +83,10 @@ if(NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") if(DEBUG) set(MIN_LOGGER_LEVEL DEBUG) add_cflag("-g3") + if(MINGW) + # Allows wine to display source code file names and line numbers on crash in its backtrace + add_flag("-gdwarf-2") + endif() endif() option(WARNINGS "Enable additional compiler warnings" ON) -- cgit v1.2.3