remove unsafe compile params

Not sure whether MinGW supports it or not.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
Yuhang Zhao 2022-09-20 17:39:24 +08:00
parent 47bf4da5ae
commit 81ec19d2aa
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ function(setup_compile_params arg_target)
else()
target_compile_options(${arg_target} PRIVATE
-Wall -Wextra -Werror
$<$<NOT:$<CONFIG:Debug>>:-ffunction-sections -fdata-sections -fcf-protection=full> # -Wa,-mno-branches-within-32B-boundaries?
$<$<NOT:$<CONFIG:Debug>>:-ffunction-sections -fdata-sections> # -fcf-protection=full? -Wa,-mno-branches-within-32B-boundaries?
)
target_link_options(${arg_target} PRIVATE
$<$<NOT:$<CONFIG:Debug>>:-Wl,--gc-sections>