mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-03 00:38:58 +00:00
Try add LTO
This commit is contained in:
@@ -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)
|
||||
|
||||
+1
-1
@@ -104,7 +104,7 @@ else()
|
||||
|
||||
if (MINGW_STATIC_BUILD)
|
||||
add_definitions(-DQT_STATICPLUGIN)
|
||||
add_compile_options("-static -flto")
|
||||
add_compile_options("-static")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user