diff --git a/cmake/profiles/debug.cmake b/cmake/profiles/debug.cmake index f75335b219..9b59f38a75 100644 --- a/cmake/profiles/debug.cmake +++ b/cmake/profiles/debug.cmake @@ -7,7 +7,6 @@ if(MBED_TOOLCHAIN STREQUAL "GCC_ARM") list(APPEND c_compile_options "-c" "-std=gnu11" - "-g3" "-Og" ) target_compile_options(mbed-os @@ -17,7 +16,6 @@ if(MBED_TOOLCHAIN STREQUAL "GCC_ARM") list(APPEND cxx_compile_options "-c" - "-g3" "-std=gnu++14" "-fno-rtti" "-Wvla" @@ -30,7 +28,6 @@ if(MBED_TOOLCHAIN STREQUAL "GCC_ARM") list(APPEND asm_compile_options "-c" - "-g3" "-x" "assembler-with-cpp" ) target_compile_options(mbed-os diff --git a/cmake/toolchains/GCC_ARM.cmake b/cmake/toolchains/GCC_ARM.cmake index 82ef6e7e7a..48fbc6bbe8 100644 --- a/cmake/toolchains/GCC_ARM.cmake +++ b/cmake/toolchains/GCC_ARM.cmake @@ -31,7 +31,7 @@ list(APPEND common_options "-funsigned-char" "-MMD" "-fomit-frame-pointer" - "-g" + "-g3" ) target_compile_options(mbed-os