ref: 9d3cdf264fafc847e98ab19d5a437100d9d5d2df
parent: c7e7758a8a177b918833b319d470a22ab9bd116a
author: gkostka <kostka.grzegorz@gmail.com>
date: Thu Oct 29 17:12:08 EDT 2015
Enable debug symbols generation in generic build
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
#Release
#Debug
-BUILD_TYPE = Debug
+BUILD_TYPE = Release
#Check: http://www.cmake.org/Wiki/CMake_Generator_Specific_Information
#"Unix Makefiles"
--- a/toolchain/generic.cmake
+++ b/toolchain/generic.cmake
@@ -23,6 +23,6 @@
SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -ggdb3" CACHE INTERNAL "cxx debug compiler flags")
SET(CMAKE_ASM_FLAGS_DEBUG "-g -ggdb3" CACHE INTERNAL "asm debug compiler flags")
-SET(CMAKE_C_FLAGS_RELEASE "-O2" CACHE INTERNAL "c release compiler flags")
-SET(CMAKE_CXX_FLAGS_RELEASE "-O2" CACHE INTERNAL "cxx release compiler flags")
+SET(CMAKE_C_FLAGS_RELEASE "-O2 -g -ggdb3" CACHE INTERNAL "c release compiler flags")
+SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -g -ggdb3" CACHE INTERNAL "cxx release compiler flags")
SET(CMAKE_ASM_FLAGS_RELEASE "" CACHE INTERNAL "asm release compiler flags")