summaryrefslogtreecommitdiff
path: root/nuttx/configs/cloudctrl
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/configs/cloudctrl')
-rw-r--r--nuttx/configs/cloudctrl/nsh/Make.defs6
1 files changed, 4 insertions, 2 deletions
diff --git a/nuttx/configs/cloudctrl/nsh/Make.defs b/nuttx/configs/cloudctrl/nsh/Make.defs
index 872fd450c..1597edf95 100644
--- a/nuttx/configs/cloudctrl/nsh/Make.defs
+++ b/nuttx/configs/cloudctrl/nsh/Make.defs
@@ -76,8 +76,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