diff options
Diffstat (limited to 'nuttx/configs/mikroe-stm32f4/nxlines/Make.defs')
-rw-r--r-- | nuttx/configs/mikroe-stm32f4/nxlines/Make.defs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nuttx/configs/mikroe-stm32f4/nxlines/Make.defs b/nuttx/configs/mikroe-stm32f4/nxlines/Make.defs index b04c5126d..14ef2a2e8 100644 --- a/nuttx/configs/mikroe-stm32f4/nxlines/Make.defs +++ b/nuttx/configs/mikroe-stm32f4/nxlines/Make.defs @@ -70,8 +70,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 |