build: add -gc-sections for non-MSVC compilers

This commit is contained in:
veclav talica 2024-07-19 23:37:28 +03:00
parent b7edb8a02e
commit 765e6bb8a0

View File

@ -94,7 +94,10 @@ else()
-fno-trapping-math
-freciprocal-math)
set(BUILD_FLAGS_RELEASE
-flto)
-flto
-Wl,-gc-sections
-fdata-sections
-ffunction-sections)
set(BUILD_FLAGS_DEBUG
-g3
-gdwarf