build: add -gc-sections for non-MSVC compilers
This commit is contained in:
parent
b7edb8a02e
commit
765e6bb8a0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user