Strip the release executable.

For *some* reason, there's debug info in one of the MinGW-w64 libs,
which account for roughly half the bloat of the release exe.
This commit is contained in:
Guillaume Jacquemin 2021-12-03 00:14:22 +01:00
parent 065e63f27c
commit 7059295cb3
1 changed files with 4 additions and 0 deletions

View File

@ -153,6 +153,10 @@ endif()
target_link_options(MassBuilderSaveTool PRIVATE -static -static-libgcc -static-libstdc++)
if(CMAKE_BUILD_TYPE STREQUAL Release)
target_link_options(MassBuilderSaveTool PRIVATE -Wl,-S)
endif()
target_link_libraries(MassBuilderSaveTool PRIVATE
Corrade::Containers
Corrade::Utility