forked from github_mirror/framelesshelper
fix macos build
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
parent
4538e80038
commit
8097a30a68
|
@ -67,9 +67,15 @@ function(setup_compile_params arg_target)
|
|||
-Wall -Wextra -Werror
|
||||
$<$<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>
|
||||
)
|
||||
if(APPLE)
|
||||
target_link_options(${arg_target} PRIVATE
|
||||
$<$<NOT:$<CONFIG:Debug>>:-Wl,-dead_strip>
|
||||
)
|
||||
else()
|
||||
target_link_options(${arg_target} PRIVATE
|
||||
$<$<NOT:$<CONFIG:Debug>>:-Wl,--gc-sections>
|
||||
)
|
||||
endif()
|
||||
#[[if(CLANG)
|
||||
target_compile_options(${arg_target} PRIVATE
|
||||
$<$<NOT:$<CONFIG:Debug>>:-Xclang -cfguard -mretpoline>
|
||||
|
|
Loading…
Reference in New Issue