diff --git a/appveyor.yml b/appveyor.yml index 489ac3f..97285b4 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -60,6 +60,7 @@ after_build: Remove-Item -Force .\msvc_build\bin\release\styles\*.pdb Copy-Item .\msvc_build\bin\release\* -Destination release -Recurse } else { + C:\msys64\usr\bin\bash.exe -lc 'strip ./mingw_build/bin/threeSD.exe' Copy-Item .\mingw_build\bin\threeSD.exe -Destination release } diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 00f31f8..8355b78 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -104,7 +104,7 @@ else() if (MINGW_STATIC_BUILD) add_definitions(-DQT_STATICPLUGIN) - add_compile_options("-static") + add_compile_options("-static -flto") endif() endif()