risc-v/rv32im: Set MAXOPTIMIZATION regardless of any debug options

This commit is contained in:
Gustavo Henrique Nihei 2021-04-23 09:27:49 -03:00 committed by Xiang Xiao
parent 0a0a034a3f
commit abf039b744

View File

@ -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