summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-03-05 23:18:19 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-03-05 23:18:19 +0000
commit736a5f1d1240dc97f959b437c080fe816164b046 (patch)
treec0b28b12bab8e3b73e00ea7d0e512e3311def979 /CMakeLists.txt
parent0b5d7084cee77d143bbb2a4f03ee4ed9e570d61d (diff)
downloadrspamd-736a5f1d1240dc97f959b437c080fe816164b046.tar.gz
rspamd-736a5f1d1240dc97f959b437c080fe816164b046.zip
Revert "[Minor] Use less aggressive optimisation level"
This reverts commit 9bfff1d4775e19ce85272f61aecd64ce69b6a98a.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2e490b6cc..7ab6f7c56 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -819,7 +819,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 "-g -O2 -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>")
@@ -829,7 +829,7 @@ IF(NOT CMAKE_C_OPT_FLAGS)
SET(CMAKE_CXX_ARCHIVE_FINISH "${CMAKE_GCC_RANLIB} <TARGET>")
ENDIF()
ELSE()
- SET(CMAKE_C_OPT_FLAGS "-g -O2 -fstrict-aliasing")
+ SET(CMAKE_C_OPT_FLAGS "-g -O3 -fstrict-aliasing")
ENDIF()
ELSE(ENABLE_OPTIMIZATION MATCHES "ON")
IF(ENABLE_FULL_DEBUG MATCHES "ON")