Skip to content
Snippets Groups Projects
Commit 14be131c authored by Pavel Cherenkov's avatar Pavel Cherenkov
Browse files

-ggdb changed to -g for clang builds

parent f15d531f
No related branches found
No related tags found
No related merge requests found
...@@ -145,8 +145,14 @@ endif() ...@@ -145,8 +145,14 @@ endif()
# #
# Perform build type specific configuration. # Perform build type specific configuration.
# #
set (CMAKE_C_FLAGS_DEBUG "-ggdb -O0 -fexceptions -funwind-tables") if (CMAKE_COMPILER_IS_GNUCC)
set (CMAKE_C_FLAGS_RELWITHDEBUGINFO "-ggdb -O2 -fexceptions -funwind-tables -DNDEBUG -DNVALGRIND") set (CC_DEBUG_OPT "-ggdb")
else()
set (CC_DEBUG_OPT "-g")
endif()
set (CMAKE_C_FLAGS_DEBUG "${CC_DEBUG_OPT} -O0 -fexceptions -funwind-tables")
set (CMAKE_C_FLAGS_RELWITHDEBUGINFO "${CC_DEBUG_OPT} -O2 -fexceptions -funwind-tables -DNDEBUG -DNVALGRIND")
set (CMAKE_C_FLAGS_RELEASE "-DNDEBUG -DNVALGRIND") set (CMAKE_C_FLAGS_RELEASE "-DNDEBUG -DNVALGRIND")
# #
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment