mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:43:28 +08:00
More separation of debug symbols and optimization selections
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
|
||||
include ${TOPDIR}/.config
|
||||
include ${TOPDIR}/tools/Config.mk
|
||||
include ${TOPDIR}/arch/arm/src/arm/Toolchain.defs
|
||||
|
||||
ifeq ("${CONFIG_SERCOMM_CONSOLE}","y")
|
||||
OSMODIR = $(TOPDIR)/../../osmocom-bb
|
||||
@@ -59,9 +60,10 @@ ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1}
|
||||
|
||||
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
||||
ARCHOPTIMIZATION = -g
|
||||
else
|
||||
ARCHOPTIMIZATION = -Os -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
|
||||
|
||||
ifeq ($(ARCHCCMAJOR),4)
|
||||
|
||||
Reference in New Issue
Block a user