Use ThinLTO for Clang.
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
fedb27790e
commit
b6de3a730b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue