diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2021-05-08 03:16:03 +0200 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2021-05-08 04:11:39 +0200 |
commit | 03d1c1bfa8a3b48ff74bf838cdc290d4c23ec06c (patch) | |
tree | aabe1d68c873e2a6253f3a0be7bf3ba1f1bc6fd4 | |
parent | a55b09eeff34667b0edc314d61ec79915879f41d (diff) | |
download | mariadb-git-bb-10.6-wlad-lto.tar.gz |
Windows - enable link time code generation optimization on release buildsbb-10.6-wlad-lto
-rw-r--r-- | cmake/build_configurations/mysql_release.cmake | 2 | ||||
-rw-r--r-- | cmake/libutils.cmake | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/cmake/build_configurations/mysql_release.cmake b/cmake/build_configurations/mysql_release.cmake index 08eccb7fb6b..b2d72d86ad5 100644 --- a/cmake/build_configurations/mysql_release.cmake +++ b/cmake/build_configurations/mysql_release.cmake @@ -128,6 +128,8 @@ IF(WIN32) # Sign executables with authenticode certificate SET(SIGNCODE 1 CACHE BOOL "") ENDIF() + + SET(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELWITHDEBINFO ON CACHE BOOL "") ENDIF() IF(UNIX) diff --git a/cmake/libutils.cmake b/cmake/libutils.cmake index 4c8401971f6..f618c1e1ff4 100644 --- a/cmake/libutils.cmake +++ b/cmake/libutils.cmake @@ -369,6 +369,11 @@ ENDFUNCTION() FUNCTION (MAYBE_DISABLE_IPO target) IF(MSVC AND NOT CLANG_CL) - SET_TARGET_PROPERTIES(${target} PROPERTIES INTERPROCEDURAL_OPTIMIZATION OFF) + SET_TARGET_PROPERTIES(${target} PROPERTIES + INTERPROCEDURAL_OPTIMIZATION OFF + INTERPROCEDURAL_OPTIMIZATION_DEBUG OFF + INTERPROCEDURAL_OPTIMIZATION_RELEASE OFF + INTERPROCEDURAL_OPTIMIZATION_RELWITHDEBINFO OFF + INTERPROCEDURAL_OPTIMIZATION_MINSIZEREL OFF) ENDIF() ENDFUNCTION() |