mirror of https://github.com/ARMmbed/mbed-os.git
Add debug symbols to all builds (release/debug)
All toolchains affected. Fixes #39.
parent
5828ebdb90
commit
75d04a3903
|
@ -53,10 +53,11 @@ class ARM(mbedToolchain):
|
|||
common.extend(["--asm", "--interleave"])
|
||||
|
||||
if "debug-info" in self.options:
|
||||
common.append("-g")
|
||||
common.append("-O0")
|
||||
else:
|
||||
common.append("-O3")
|
||||
# add debug symbols for all builds
|
||||
common.append("-g")
|
||||
|
||||
common_c = [
|
||||
"--md", "--no_depend_system_headers",
|
||||
|
|
|
@ -75,10 +75,11 @@ class GCC(mbedToolchain):
|
|||
common_flags.append("-save-temps")
|
||||
|
||||
if "debug-info" in self.options:
|
||||
common_flags.append("-g")
|
||||
common_flags.append("-O0")
|
||||
else:
|
||||
common_flags.append("-O2")
|
||||
# add debug symbols for all builds
|
||||
common_flags.append("-g")
|
||||
|
||||
main_cc = join(tool_path, "arm-none-eabi-gcc")
|
||||
main_cppc = join(tool_path, "arm-none-eabi-g++")
|
||||
|
|
|
@ -53,10 +53,11 @@ class IAR(mbedToolchain):
|
|||
|
||||
|
||||
if "debug-info" in self.options:
|
||||
c_flags.append("-r")
|
||||
c_flags.append("-On")
|
||||
else:
|
||||
c_flags.append("-Oh")
|
||||
# add debug symbols for all builds
|
||||
c_flags.append("-r")
|
||||
|
||||
IAR_BIN = join(IAR_PATH, "bin")
|
||||
main_cc = join(IAR_BIN, "iccarm")
|
||||
|
|
Loading…
Reference in New Issue