forked from github_mirror/framelesshelper
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:
parent
47bf4da5ae
commit
81ec19d2aa
|
@ -65,7 +65,7 @@ function(setup_compile_params arg_target)
|
||||||
else()
|
else()
|
||||||
target_compile_options(${arg_target} PRIVATE
|
target_compile_options(${arg_target} PRIVATE
|
||||||
-Wall -Wextra -Werror
|
-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
|
target_link_options(${arg_target} PRIVATE
|
||||||
$<$<NOT:$<CONFIG:Debug>>:-Wl,--gc-sections>
|
$<$<NOT:$<CONFIG:Debug>>:-Wl,--gc-sections>
|
||||||
|
|
Loading…
Reference in New Issue