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
|
-fno-trapping-math
|
||||||
-freciprocal-math)
|
-freciprocal-math)
|
||||||
set(BUILD_FLAGS_RELEASE
|
set(BUILD_FLAGS_RELEASE
|
||||||
-flto)
|
-flto
|
||||||
|
-Wl,-gc-sections
|
||||||
|
-fdata-sections
|
||||||
|
-ffunction-sections)
|
||||||
set(BUILD_FLAGS_DEBUG
|
set(BUILD_FLAGS_DEBUG
|
||||||
-g3
|
-g3
|
||||||
-gdwarf
|
-gdwarf
|
||||||
|
Loading…
Reference in New Issue
Block a user