Commit 84b185fc authored by Shu's avatar Shu 🍠
Browse files

Link time optimization

parent 6f4df225
......@@ -35,7 +35,7 @@ deploy:package:
- mkdir -p applications
- cp ../resource/package/*.desktop applications
- mkdir -p icons/hicolor/256x256/apps
- cp ../univerxel.png icons/hicolor/256x256/apps
- cp ../resource/package/univerxel.png icons/hicolor/256x256/apps
- cp ../resource/package/config.full.toml config.toml
- tar cfz ../out/full.tar.gz univerxel applications/fr.wadza.univerxel.desktop config.toml icons content
- cp ../resource/package/config.client.toml config.toml
......
......@@ -23,6 +23,15 @@ if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
include(CheckIPOSupported)
check_ipo_supported(RESULT IPO_OK OUTPUT IPO_ERROR)
if(IPO_OK)
message(STATUS "IPO / LTO enabled")
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
else()
message(STATUS "IPO / LTO not supported: <${IPO_ERROR}>")
endif()
if(MSVC)
add_definitions(/std:c++latest)
add_compile_definitions(WIN32_LEAN_AND_MEAN=)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment