Skip to content

Commit

Permalink
common/Toolchain.defs: support CONFIG_DEBUG_NOOPT for x86_64
Browse files Browse the repository at this point in the history
Signed-off-by: wangyongrong <[email protected]>
  • Loading branch information
wyr-7 authored and xiaoxiang781216 committed Oct 11, 2024
1 parent 20db146 commit 933e066
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/x86_64/src/common/Toolchain.defs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
ARCHOPTIMIZATION = $(CONFIG_DEBUG_SYMBOLS_LEVEL)
endif

ifeq ($(CONFIG_DEBUG_CUSTOMOPT),y)
ifeq ($(CONFIG_DEBUG_NOOPT),y)
ARCHOPTIMIZATION += -O0
else ifeq ($(CONFIG_DEBUG_CUSTOMOPT),y)
ARCHOPTIMIZATION += $(CONFIG_DEBUG_OPTLEVEL)
else ifeq ($(CONFIG_DEBUG_FULLOPT),y)
ARCHOPTIMIZATION += -Os
Expand Down

0 comments on commit 933e066

Please sign in to comment.