Revert "Force debug symbols for gdb."

This reverts commit 221024a100.
pull/1341/head
Wojciech Gorniak 2015-09-25 10:16:24 +02:00
parent 848494928a
commit a06da2a29d
1 changed files with 5 additions and 2 deletions

View File

@ -69,8 +69,11 @@ class GCC(mbedToolchain):
if "save-asm" in self.options:
common_flags.append("-save-temps")
common_flags.append("-ggdb")
common_flags.append("-O0")
if "debug-info" in self.options:
common_flags.append("-g")
common_flags.append("-O0")
else:
common_flags.append("-O2")
main_cc = join(tool_path, "arm-none-eabi-gcc")
main_cppc = join(tool_path, "arm-none-eabi-g++")