summaryrefslogtreecommitdiff
path: root/nuttx/configs/sim/pashello/Make.defs
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/configs/sim/pashello/Make.defs')
-rw-r--r--nuttx/configs/sim/pashello/Make.defs6
1 files changed, 4 insertions, 2 deletions
diff --git a/nuttx/configs/sim/pashello/Make.defs b/nuttx/configs/sim/pashello/Make.defs
index 553026914..3ce6b9406 100644
--- a/nuttx/configs/sim/pashello/Make.defs
+++ b/nuttx/configs/sim/pashello/Make.defs
@@ -40,8 +40,10 @@ HOSTOS = ${shell uname -o 2>/dev/null || echo "Other"}
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
ARCHOPTIMIZATION = -g
-else
- ARCHOPTIMIZATION = -O2
+endif
+
+ifneq ($(CONFIG_DEBUG_NOOPT),y)
+ ARCHOPTIMIZATION += -O2
endif
ARCHCPUFLAGS = -fno-builtin