Use ThinLTO for Clang.
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2020-09-12 16:50:36 +02:00
parent fedb27790e
commit b6de3a730b
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,11 @@ if (SHARED)
set(LIBTYPE SHARED)
endif (SHARED)
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
add_compile_options(-flto=thin)
add_link_options(-flto=thin)
endif ()
if (NOT WINDOWS)
# Include debug symbols in all linux builds
add_compile_options(-g -gfull -g3)