diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-17 15:55:10 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-17 15:55:10 +0000 |
commit | e1cb7814b26532fd18da711ec8d01425f0d2d6c1 (patch) | |
tree | 79fbba33ea8337e451560708e465df929ef6010e /CMakeLists.txt | |
parent | 171379a3c74af461105057392913bb0d10f187e4 (diff) | |
download | rspamd-e1cb7814b26532fd18da711ec8d01425f0d2d6c1.tar.gz rspamd-e1cb7814b26532fd18da711ec8d01425f0d2d6c1.zip |
[Minor] Allways compile with symbols
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 05d73cf79..382b41e9c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -805,7 +805,7 @@ IF(NOT CMAKE_C_OPT_FLAGS) MARK_AS_ADVANCED(CMAKE_GCC_AR CMAKE_GCC_RANLIB) ENDIF() IF(CMAKE_GCC_AR AND CMAKE_GCC_RANLIB) - SET(CMAKE_C_OPT_FLAGS "-O3 -fstrict-aliasing -flto") + SET(CMAKE_C_OPT_FLAGS "-g -O3 -fstrict-aliasing -flto") SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -flto") SET(CMAKE_C_ARCHIVE_CREATE "${CMAKE_GCC_AR} cr <TARGET> <LINK_FLAGS> <OBJECTS>") SET(CMAKE_C_ARCHIVE_APPEND "${CMAKE_GCC_AR} r <TARGET> <LINK_FLAGS> <OBJECTS>") @@ -815,7 +815,7 @@ IF(NOT CMAKE_C_OPT_FLAGS) SET(CMAKE_CXX_ARCHIVE_FINISH "${CMAKE_GCC_RANLIB} <TARGET>") ENDIF() ELSE() - SET(CMAKE_C_OPT_FLAGS "-O3 -fstrict-aliasing") + SET(CMAKE_C_OPT_FLAGS "-g -O3 -fstrict-aliasing") ENDIF() ELSE(ENABLE_OPTIMIZATION MATCHES "ON") IF(DEBUG_MODE MATCHES "ON") |