Try add LTO

This commit is contained in:
zhupengfei
2020-05-16 19:50:08 +08:00
parent ebab1c433b
commit 47df56ea36
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -128,6 +128,10 @@ elseif (CMAKE_SYSTEM_NAME MATCHES "^(Linux|kFreeBSD|GNU|SunOS)$")
set(PLATFORM_LIBRARIES rt)
endif()
if (NOT MSVC)
add_compile_options("-flto")
endif()
# Include source code
# ===================
add_subdirectory(externals)