diff --git a/tools/cmake/profiles/release.cmake b/tools/cmake/profiles/release.cmake index feec05f..07b84a0 100644 --- a/tools/cmake/profiles/release.cmake +++ b/tools/cmake/profiles/release.cmake @@ -8,6 +8,7 @@ if(${mbed_toolchain} STREQUAL "GCC_ARM") list(APPEND profile_c_compile_options "-Os" + "-g0" ) target_compile_options(${target} INTERFACE @@ -18,6 +19,7 @@ "-fno-rtti" "-Wvla" "-Os" + "-g0" ) target_compile_options(${target} INTERFACE @@ -33,6 +35,7 @@ ) list(APPEND profile_link_options + "-Wl,--compress-debug-sections=zlib" "-Wl,--gc-sections" "-Wl,--wrap,main" "-Wl,--wrap,_malloc_r"