Use ThinLTO for shared library building.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-09-12 17:22:27 +02:00
parent 8f73a9a43a
commit ffc2819913
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 4 additions and 0 deletions

View File

@ -63,6 +63,10 @@ endif ()
set(LIBTYPE STATIC)
if (SHARED)
set(LIBTYPE SHARED)
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
add_compile_options(-flto=thin)
add_link_options(-flto=thin)
endif ()
endif (SHARED)
SET(FILE_SOURCE