Use -ggdb in debug builds.

This makes it possible to see source code in "perf annotate" and such.
This commit is contained in:
Scott Lamb 2016-01-14 16:14:53 -08:00
parent 84406a8123
commit 6cd2d75846

View File

@ -40,6 +40,7 @@ else()
endif() endif()
set(CMAKE_CXX_FLAGS "-Wall -Werror -pedantic-errors ${CMAKE_CXX_FLAGS}") set(CMAKE_CXX_FLAGS "-Wall -Werror -pedantic-errors ${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -ggdb")
# #
# Dependencies. # Dependencies.