Skip to content

Commit 933e066

Browse files
wyr-7xiaoxiang781216
authored andcommitted
common/Toolchain.defs: support CONFIG_DEBUG_NOOPT for x86_64
Signed-off-by: wangyongrong <[email protected]>
1 parent 20db146 commit 933e066

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arch/x86_64/src/common/Toolchain.defs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
4141
ARCHOPTIMIZATION = $(CONFIG_DEBUG_SYMBOLS_LEVEL)
4242
endif
4343

44-
ifeq ($(CONFIG_DEBUG_CUSTOMOPT),y)
44+
ifeq ($(CONFIG_DEBUG_NOOPT),y)
45+
ARCHOPTIMIZATION += -O0
46+
else ifeq ($(CONFIG_DEBUG_CUSTOMOPT),y)
4547
ARCHOPTIMIZATION += $(CONFIG_DEBUG_OPTLEVEL)
4648
else ifeq ($(CONFIG_DEBUG_FULLOPT),y)
4749
ARCHOPTIMIZATION += -Os

0 commit comments

Comments
 (0)