risc-v/rv32im: Set MAXOPTIMIZATION regardless of any debug options
This commit is contained in:
parent
0a0a034a3f
commit
abf039b744
@ -49,6 +49,8 @@ endif
|
||||
|
||||
ifeq ($(CONFIG_DEBUG_CUSTOMOPT),y)
|
||||
MAXOPTIMIZATION := $(CONFIG_DEBUG_OPTLEVEL)
|
||||
else
|
||||
MAXOPTIMIZATION ?= -Os
|
||||
endif
|
||||
|
||||
# Generic GNU RVG toolchain
|
||||
@ -67,13 +69,6 @@ ifeq ($(CONFIG_RISCV_TOOLCHAIN),GNU_RVG)
|
||||
endif
|
||||
endif
|
||||
|
||||
# Individual tools may limit the optimization level but, by default, the
|
||||
# optimization level will be set to -Os
|
||||
|
||||
ifeq ($(CONFIG_DEBUG_SYMBOLS),)
|
||||
MAXOPTIMIZATION ?= -Os
|
||||
endif
|
||||
|
||||
# Default toolchain
|
||||
|
||||
CC = $(CROSSDEV)gcc
|
||||
|
Loading…
Reference in New Issue
Block a user