Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
Yuhang Zhao 2023-02-15 17:03:47 +08:00
parent a5acf1b966
commit fab8bc3f72
1 changed files with 5 additions and 4 deletions

View File

@ -546,10 +546,11 @@ function(setup_compile_params)
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
target_compile_options(${__target} PRIVATE target_compile_options(${__target} PRIVATE
$<$<NOT:$<CONFIG:Debug>>: $<$<NOT:$<CONFIG:Debug>>:
-mindirect-branch=thunk #-mindirect-branch=thunk
-mfunction-return=thunk #-mfunction-return=thunk
-mindirect-branch-register #-mindirect-branch-register
-mindirect-branch-cs-prefix #-mindirect-branch-cs-prefix
-fcf-protection=full
> >
) )
endif() endif()