Only use ThinLTO for shared libraries.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
4f8ca03a39
commit
38f36699ac
|
@ -16,12 +16,12 @@ option(PRETTYTRACES "Whether full stacktraces should be included. Note that this
|
|||
set(LIBTYPE STATIC)
|
||||
if (SHARED)
|
||||
set(LIBTYPE SHARED)
|
||||
endif (SHARED)
|
||||
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
add_compile_options(-flto=thin)
|
||||
add_link_options(-flto=thin)
|
||||
endif ()
|
||||
endif ()
|
||||
endif (SHARED)
|
||||
|
||||
|
||||
if (NOT WINDOWS)
|
||||
# Include debug symbols in all linux builds
|
||||
|
|
Loading…
Reference in New Issue