From a94cda2860f4ea87f254966f71307e928ffe9bcb Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 20 Dec 2013 13:23:42 -0600 Subject: Finishes separation of debug symbols and optimization selections --- nuttx/configs/lm4f120-launchpad/nsh/Make.defs | 6 ++++-- nuttx/configs/lm4f120-launchpad/ostest/Make.defs | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'nuttx/configs/lm4f120-launchpad') diff --git a/nuttx/configs/lm4f120-launchpad/nsh/Make.defs b/nuttx/configs/lm4f120-launchpad/nsh/Make.defs index d97cebd6a..333eaf027 100644 --- a/nuttx/configs/lm4f120-launchpad/nsh/Make.defs +++ b/nuttx/configs/lm4f120-launchpad/nsh/Make.defs @@ -68,8 +68,10 @@ ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1} ifeq ($(CONFIG_DEBUG_SYMBOLS),y) ARCHOPTIMIZATION = -g -else - ARCHOPTIMIZATION = $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer +endif + +ifneq ($(CONFIG_DEBUG_NOOPT),y) + ARCHOPTIMIZATION += $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer endif ARCHCFLAGS = -fno-builtin diff --git a/nuttx/configs/lm4f120-launchpad/ostest/Make.defs b/nuttx/configs/lm4f120-launchpad/ostest/Make.defs index fdf79f3c7..8513a83d9 100644 --- a/nuttx/configs/lm4f120-launchpad/ostest/Make.defs +++ b/nuttx/configs/lm4f120-launchpad/ostest/Make.defs @@ -68,8 +68,10 @@ ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1} ifeq ($(CONFIG_DEBUG_SYMBOLS),y) ARCHOPTIMIZATION = -g -else - ARCHOPTIMIZATION = $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer +endif + +ifneq ($(CONFIG_DEBUG_NOOPT),y) + ARCHOPTIMIZATION += $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer endif ARCHCFLAGS = -fno-builtin -- cgit v1.2.3