mirror of
https://github.com/apache/nuttx.git
synced 2025-01-12 23:18:36 +08:00
debug symbol level: Use config instead
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
This commit is contained in:
parent
dcea1b90e7
commit
cc88063646
7 changed files with 7 additions and 6 deletions
1
Kconfig
1
Kconfig
|
@ -2495,6 +2495,7 @@ config DEBUG_SYMBOLS
|
|||
|
||||
config DEBUG_SYMBOLS_LEVEL
|
||||
string "Custom symbols level"
|
||||
depends on DEBUG_SYMBOLS
|
||||
default "-g"
|
||||
---help---
|
||||
This string represents the custom symbol level that will be
|
||||
|
|
|
@ -166,7 +166,7 @@ ifeq ($(CONFIG_DEBUG_LINK_MAP),y)
|
|||
endif
|
||||
|
||||
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
||||
ARCHOPTIMIZATION += -g
|
||||
ARCHOPTIMIZATION += $(CONFIG_DEBUG_SYMBOLS_LEVEL)
|
||||
endif
|
||||
|
||||
LDFLAGS += --no-warn-rwx-segments
|
||||
|
|
|
@ -76,7 +76,7 @@ ARCHOPTIMIZATION += --tradeoff=2
|
|||
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
||||
ARCHOPTIMIZATION += --debug-info=default
|
||||
ARCHOPTIMIZATION += --keep-temporary-files
|
||||
LDFLAGS += -g
|
||||
LDFLAGS += $(CONFIG_DEBUG_SYMBOLS_LEVEL)
|
||||
endif
|
||||
|
||||
# merge source code with assembly output
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
############################################################################
|
||||
|
||||
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
||||
ARCHOPTIMIZATION = -g3
|
||||
ARCHOPTIMIZATION = $(CONFIG_DEBUG_SYMBOLS_LEVEL)
|
||||
endif
|
||||
|
||||
ifneq ($(CONFIG_DEBUG_NOOPT),y)
|
||||
|
|
|
@ -25,7 +25,7 @@ DC := ldmd2
|
|||
DFLAGS := -i
|
||||
|
||||
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
||||
DFLAGS += -g
|
||||
DFLAGS += $(CONFIG_DEBUG_SYMBOLS_LEVEL)
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_DEBUG_NOOPT),y)
|
||||
|
|
|
@ -25,7 +25,7 @@ RUSTC := rustc --edition 2021
|
|||
RUSTFLAGS :=
|
||||
|
||||
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
||||
RUSTFLAGS += -g
|
||||
RUSTFLAGS += $(CONFIG_DEBUG_SYMBOLS_LEVEL)
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_DEBUG_NOOPT),y)
|
||||
|
|
|
@ -27,7 +27,7 @@ SWIFTC := swiftc
|
|||
SWIFTFLAGS := -enable-experimental-feature Embedded -wmo
|
||||
|
||||
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
||||
SWIFTFLAGS += -g
|
||||
SWIFTFLAGS += $(CONFIG_DEBUG_SYMBOLS_LEVEL)
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_DEBUG_NOOPT),y)
|
||||
|
|
Loading…
Reference in a new issue