From 4b4e4c95449e902206e0d92025c6dc05f3e355d5 Mon Sep 17 00:00:00 2001 From: jzlv Date: Mon, 8 Aug 2022 17:13:08 +0800 Subject: [PATCH] [fix][ble_pds] modify O2 to Os --- examples/ble/ble_pds/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/ble/ble_pds/CMakeLists.txt b/examples/ble/ble_pds/CMakeLists.txt index 3112c5ad..dfcdaaed 100644 --- a/examples/ble/ble_pds/CMakeLists.txt +++ b/examples/ble/ble_pds/CMakeLists.txt @@ -1,3 +1,6 @@ +list(APPEND GLOBAL_C_FLAGS -fshort-enums) +list(REMOVE_ITEM GLOBAL_C_FLAGS -O2) +list(APPEND GLOBAL_C_FLAGS -Os) set(BSP_COMMON_DIR ${CMAKE_SOURCE_DIR}/bsp/bsp_common) set(TARGET_REQUIRED_SRCS ${CMAKE_CURRENT_LIST_DIR}/ble_peripheral_tp_server.c @@ -7,4 +10,3 @@ set(mains main.c) set(LINKER_SCRIPT ${CMAKE_SOURCE_DIR}/examples/ble/bl702_flash_ble_pds.ld) generate_bin() -