commit 11a64f8: [Minor] Print always IPO status

Christian Göttsche cgzones at googlemail.com
Tue Apr 14 09:56:07 UTC 2020


Author: Christian Göttsche
Date: 2020-04-06 16:27:36 +0200
URL: https://github.com/rspamd/rspamd/commit/11a64f8b09f9c50b4d7ee0a757ff8bb025b00ba0

[Minor] Print always IPO status

---
 cmake/Toolset.cmake | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cmake/Toolset.cmake b/cmake/Toolset.cmake
index 638dca9e1..8539dbe0a 100644
--- a/cmake/Toolset.cmake
+++ b/cmake/Toolset.cmake
@@ -175,6 +175,7 @@ option(ENABLE_LTO       "Build rspamd with Link Time Optimization if supported [
 
 if (CMAKE_BUILD_TYPE_UC MATCHES "COVERAGE")
     set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --coverage")
+    message (STATUS "IPO not enabled for COVERAGE build")
 elseif (ENABLE_LTO)
     if (${CMAKE_VERSION} VERSION_GREATER "3.9.0")
         cmake_policy (SET CMP0069 NEW)
@@ -187,6 +188,8 @@ elseif (ENABLE_LTO)
             message(WARNING "IPO is not supported: ${LTO_DIAG}")
         endif ()
     endif ()
+else ()
+    message (STATUS "IPO not enabled for the ${CMAKE_BUILD_TYPE} build")
 endif ()
 
 message (STATUS "Final CFLAGS: ${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_${CMAKE_BUILD_TYPE_UC}}")


More information about the Commits mailing list