From 2e988a3649a517acf21dfd55d4536966b2124b01 Mon Sep 17 00:00:00 2001 From: Bogdan Marinescu Date: Mon, 30 Oct 2017 19:10:19 +0200 Subject: [PATCH] Add "-g" to 'release' and 'develop' profiles This is used by mbed-os-linker-report and doesn't increase the code size. --- features/minimal-printf/profiles/develop.json | 2 +- features/minimal-printf/profiles/release.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/minimal-printf/profiles/develop.json b/features/minimal-printf/profiles/develop.json index f0f42bd91c..37bbf12e84 100644 --- a/features/minimal-printf/profiles/develop.json +++ b/features/minimal-printf/profiles/develop.json @@ -5,7 +5,7 @@ "-fmessage-length=0", "-fno-exceptions", "-fno-builtin", "-ffunction-sections", "-fdata-sections", "-funsigned-char", "-MMD", "-fno-delete-null-pointer-checks", - "-fomit-frame-pointer", "-Os"], + "-fomit-frame-pointer", "-Os", "-g"], "asm": ["-x", "assembler-with-cpp"], "c": ["-std=gnu99"], "cxx": ["-std=gnu++98", "-fno-rtti", "-Wvla"], diff --git a/features/minimal-printf/profiles/release.json b/features/minimal-printf/profiles/release.json index 90578b053c..1c8174aaad 100644 --- a/features/minimal-printf/profiles/release.json +++ b/features/minimal-printf/profiles/release.json @@ -5,7 +5,7 @@ "-fmessage-length=0", "-fno-exceptions", "-fno-builtin", "-ffunction-sections", "-fdata-sections", "-funsigned-char", "-MMD", "-fno-delete-null-pointer-checks", - "-fomit-frame-pointer", "-Os", "-DNDEBUG"], + "-fomit-frame-pointer", "-Os", "-DNDEBUG", "-g"], "asm": ["-x", "assembler-with-cpp"], "c": ["-std=gnu99"], "cxx": ["-std=gnu++98", "-fno-rtti", "-Wvla"],