diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2020-05-04 14:17:06 +0200 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2020-05-04 14:17:06 +0200 |
commit | d50f776930425e540678238798b4f7666b9cbb76 (patch) | |
tree | 63e5c65d22496bc4e8ed35ab04de0251e6711c96 /dbug/CMakeLists.txt | |
parent | f544a712c8a2ef3f3ecba80cb2782b1839fb36ab (diff) | |
download | mariadb-git-d50f776930425e540678238798b4f7666b9cbb76.tar.gz |
MDEV-22454
Allow -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON
Disable IPO (interprocedural optimization, aka /GL) on Windows
on libraries, from which server.dll exports symbols - exporting symbols
does not work for objects compiled with /GL.
Diffstat (limited to 'dbug/CMakeLists.txt')
-rw-r--r-- | dbug/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dbug/CMakeLists.txt b/dbug/CMakeLists.txt index 8941ac5fc27..842099f03f3 100644 --- a/dbug/CMakeLists.txt +++ b/dbug/CMakeLists.txt @@ -20,6 +20,7 @@ INCLUDE_DIRECTORIES( SET(DBUG_SOURCES dbug.c) ADD_CONVENIENCE_LIBRARY(dbug ${DBUG_SOURCES}) TARGET_LINK_LIBRARIES(dbug mysys) +MAYBE_DISABLE_IPO(dbug) ADD_EXECUTABLE(tests tests.c) TARGET_LINK_LIBRARIES(tests dbug) |