build: add -gc-sections for non-MSVC compilers
This commit is contained in:
1 parent
b7edb8a02e
commit
765e6bb8a0
1 file changed
+4
-1
+4
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user