From 809ac01795e0218c3323b096d8db673ae6e944e1 Mon Sep 17 00:00:00 2001 From: Nanosonde <2073569+nanosonde@users.noreply.github.com> Date: Mon, 2 Nov 2020 14:47:39 +0100 Subject: [PATCH] Optimize a bit more in debug build config as the binary does not fit into 128Kb flash otherwise. --- examples/knx-cc1310/cmake/toolchain-arm-none-eabi.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/knx-cc1310/cmake/toolchain-arm-none-eabi.cmake b/examples/knx-cc1310/cmake/toolchain-arm-none-eabi.cmake index b990ad9..3a6ed6a 100644 --- a/examples/knx-cc1310/cmake/toolchain-arm-none-eabi.cmake +++ b/examples/knx-cc1310/cmake/toolchain-arm-none-eabi.cmake @@ -92,8 +92,8 @@ set(CMAKE_EXE_LINKER_FLAGS "-Wl,--gc-sections --specs=nano.specs --specs=nosys.s # Options for DEBUG build # -Og Enables optimizations that do not interfere with debugging. # -g Produce debugging information in the operating system’s native format. -set(CMAKE_C_FLAGS_DEBUG "-O0 -g -gstrict-dwarf" CACHE INTERNAL "C Compiler options for debug build type") -set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -gstrict-dwarf" CACHE INTERNAL "C++ Compiler options for debug build type") +set(CMAKE_C_FLAGS_DEBUG "-Og -g -gstrict-dwarf" CACHE INTERNAL "C Compiler options for debug build type") +set(CMAKE_CXX_FLAGS_DEBUG "-Og -g -gstrict-dwarf" CACHE INTERNAL "C++ Compiler options for debug build type") set(CMAKE_ASM_FLAGS_DEBUG "-g -gstrict-dwarf" CACHE INTERNAL "ASM Compiler options for debug build type") set(CMAKE_EXE_LINKER_FLAGS_DEBUG "" CACHE INTERNAL "Linker options for debug build type")