aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/hiredis
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-12-19 10:55:28 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-12-19 10:55:28 +0000
commitdd1134f06b174f1829d81b67d7c1a6aeaf8bcc1e (patch)
treee5483eda2482a320ad834bad246fd7e0759c308d /contrib/hiredis
parenta13bc71723ef269d7dcee56416a5f42cd8ee8a72 (diff)
downloadrspamd-dd1134f06b174f1829d81b67d7c1a6aeaf8bcc1e.tar.gz
rspamd-dd1134f06b174f1829d81b67d7c1a6aeaf8bcc1e.zip
Compile external tools with optimizations.
Diffstat (limited to 'contrib/hiredis')
-rw-r--r--contrib/hiredis/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/hiredis/CMakeLists.txt b/contrib/hiredis/CMakeLists.txt
index 992fe6c92..d83ad3fc3 100644
--- a/contrib/hiredis/CMakeLists.txt
+++ b/contrib/hiredis/CMakeLists.txt
@@ -6,6 +6,9 @@ SET(LIBHIREDISSRC async.c
net.c
sds.c)
+if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3")
+endif ()
ADD_LIBRARY(hiredis STATIC ${LIBHIREDISSRC})
IF(CMAKE_COMPILER_IS_GNUCC)
SET_TARGET_PROPERTIES(hiredis PROPERTIES COMPILE_FLAGS "-fno-strict-aliasing")