From 81ec19d2aad3f4e09c7dec99eb8c88c9e08a9c8b Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <2546789017@qq.com> Date: Tue, 20 Sep 2022 17:39:24 +0800 Subject: [PATCH] remove unsafe compile params Not sure whether MinGW supports it or not. Signed-off-by: Yuhang Zhao <2546789017@qq.com> --- src/core/cmakehelper.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/cmakehelper.cmake b/src/core/cmakehelper.cmake index f453a01..0719e27 100644 --- a/src/core/cmakehelper.cmake +++ b/src/core/cmakehelper.cmake @@ -65,7 +65,7 @@ function(setup_compile_params arg_target) else() target_compile_options(${arg_target} PRIVATE -Wall -Wextra -Werror - $<$>:-ffunction-sections -fdata-sections -fcf-protection=full> # -Wa,-mno-branches-within-32B-boundaries? + $<$>:-ffunction-sections -fdata-sections> # -fcf-protection=full? -Wa,-mno-branches-within-32B-boundaries? ) target_link_options(${arg_target} PRIVATE $<$>:-Wl,--gc-sections>