From 28de956075a66d56b24d76ffb5686ac796152748 Mon Sep 17 00:00:00 2001 From: jzlv Date: Thu, 30 Sep 2021 14:51:15 +0800 Subject: [PATCH] [chore][camke] add -fno-jump-tables c compile flag --- tools/cmake/compiler_flags.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cmake/compiler_flags.cmake b/tools/cmake/compiler_flags.cmake index 4f619c26..55829408 100644 --- a/tools/cmake/compiler_flags.cmake +++ b/tools/cmake/compiler_flags.cmake @@ -1,5 +1,5 @@ list(APPEND GLOBAL_C_FLAGS -Os -g3) -list(APPEND GLOBAL_C_FLAGS -fshort-enums -fno-common -fms-extensions -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -ffast-math) +list(APPEND GLOBAL_C_FLAGS -fno-jump-tables -fshort-enums -fno-common -fms-extensions -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -ffast-math) list(APPEND GLOBAL_C_FLAGS -Wall -Wshift-negative-value -Wchar-subscripts -Wformat -Wuninitialized -Winit-self -Wignored-qualifiers -Wunused -Wundef) list(APPEND GLOBAL_C_FLAGS -msmall-data-limit=4)