Use ThinLTO for shared library building.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
8f73a9a43a
commit
ffc2819913
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue