diff --git a/utils/cmake/toolchains/ARM_GCC/compiler-flags.cmake b/utils/cmake/toolchains/ARM_GCC/compiler-flags.cmake index 16aacaa8..49857d4d 100644 --- a/utils/cmake/toolchains/ARM_GCC/compiler-flags.cmake +++ b/utils/cmake/toolchains/ARM_GCC/compiler-flags.cmake @@ -19,27 +19,29 @@ set(CMAKE_DEPFILE_FLAGS_CXX "-MMD -MT -MF ") set(CMAKE_C_OUTPUT_EXTENSION ".o") set(CMAKE_DEPFILE_FLAGS_C "-MMD -MT -MF ") -set(CMAKE_C_FLAGS_DEBUG_INIT "-g -gdwarf-3") +set(CMAKE_C_FLAGS_RELWITHDEBINFO "-g -gdwarf-4") +set(CMAKE_C_FLAGS_DEBUG_INIT "-g -gdwarf-4") set(CMAKE_C_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG") set(CMAKE_C_FLAGS_RELEASE_INIT "-Os -DNDEBUG") -set(CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "-Os -g -gdwarf-3 -DNDEBUG") +set(CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "-Os -g -gdwarf-4 -DNDEBUG") set(CMAKE_INCLUDE_SYSTEM_FLAG_C "-isystem ") - -set(CMAKE_ASM_FLAGS_DEBUG_INIT "-g -gdwarf-3") +set(CMAKE_ASM_FLAGS_RELWITHDEBINFO "-g -gdwarf-4") +set(CMAKE_ASM_FLAGS_DEBUG_INIT "-g -gdwarf-4") set(CMAKE_ASM_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG") set(CMAKE_ASM_FLAGS_RELEASE_INIT "-Os -DNDEBUG") -set(CMAKE_ASM_FLAGS_RELWITHDEBINFO_INIT "-Os -g -gdwarf-3 -DNDEBUG") +set(CMAKE_ASM_FLAGS_RELWITHDEBINFO_INIT "-Os -g -gdwarf-4 -DNDEBUG") set(CMAKE_INCLUDE_SYSTEM_FLAG_ASM "-isystem ") set(CMAKE_CXX_CREATE_STATIC_LIBRARY " -cr ") set(CMAKE_CXX_LINK_EXECUTABLE " -Wl,-Map,.map -Wl,--start-group -lnosys -lstdc++ -lsupc++ -lm -lc -lgcc -lstdc++ -lsupc++ -lm -lc -lgcc -Wl,--end-group --specs=nano.specs -o ") -set(CMAKE_CXX_FLAGS_DEBUG_INIT "-g -gdwarf-3") +set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-g -gdwarf-4") +set(CMAKE_CXX_FLAGS_DEBUG_INIT "-g -gdwarf-4") set(CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG") set(CMAKE_CXX_FLAGS_RELEASE_INIT "-Os -DNDEBUG") -set(CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-Os -g -gdwarf-3 -DNDEBUG") +set(CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-Os -g -gdwarf-4 -DNDEBUG") set(CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-isystem ") if (CMAKE_C_COMPILER_VERSION VERSION_GREATER "7.1.0" OR CMAKE_C_COMPILER_VERSION VERSION_EQUAL "7.1.0")