未验证 提交 61abe526 编写于 作者: G Galaxy1458 提交者: GitHub

[flags.cmake] add some options in flags.cmake (#56742)

* add [-W -gc-sections] in flags.cmake

* add [-W -gc-sections] in flags.cmake

* add [-W -gc-sections] in flags.cmake

* add [-W -gc-sections] in flags.cmake

* add [-W -gc-sections] in flags.cmake

* add [-W -gc-sections] in flags.cmake
上级 8cee5690
...@@ -141,6 +141,11 @@ if(NOT WIN32) ...@@ -141,6 +141,11 @@ if(NOT WIN32)
set(COMMON_FLAGS set(COMMON_FLAGS
-fPIC -fPIC
-fno-omit-frame-pointer -fno-omit-frame-pointer
-pipe
-ffunction-sections
-fdata-sections
-Wl
-gc-sections
-Werror -Werror
-Wall -Wall
-Wextra -Wextra
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册