Permalink
Browse files

Add more debug info to sanitize builds

-g1 was enough for the functions, but the extra info of -g (default -g2)
allows better backtraces on the leak detection, for example
  • Loading branch information...
JonnyH committed Nov 28, 2017
1 parent e05f859 commit dbbc20e804134ce58770bfe377c5af8fb74ab55d
Showing with 2 additions and 2 deletions.
  1. +2 −2 CMakeLists.txt
View
@@ -29,8 +29,8 @@ endif()
message("Using CD at \"${CD_PATH}\"")
set(CMAKE_C_FLAGS_SANITIZE "-O1 -g1 -fsanitize=address")
set(CMAKE_CXX_FLAGS_SANITIZE "-O1 -g1 -fsanitize=address")
set(CMAKE_C_FLAGS_SANITIZE "-O1 -g -fsanitize=address")
set(CMAKE_CXX_FLAGS_SANITIZE "-O1 -g -fsanitize=address")
set(CMAKE_C_FLAGS_QUICK "-O1 -g0")
set(CMAKE_CXX_FLAGS_QUICK "-O1 -g0")

0 comments on commit dbbc20e

Please sign in to comment.