mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
risc-v/rv32im: Set MAXOPTIMIZATION regardless of any debug options
This commit is contained in:
committed by
Xiang Xiao
parent
0a0a034a3f
commit
abf039b744
@@ -49,6 +49,8 @@ endif
|
|||||||
|
|
||||||
ifeq ($(CONFIG_DEBUG_CUSTOMOPT),y)
|
ifeq ($(CONFIG_DEBUG_CUSTOMOPT),y)
|
||||||
MAXOPTIMIZATION := $(CONFIG_DEBUG_OPTLEVEL)
|
MAXOPTIMIZATION := $(CONFIG_DEBUG_OPTLEVEL)
|
||||||
|
else
|
||||||
|
MAXOPTIMIZATION ?= -Os
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Generic GNU RVG toolchain
|
# Generic GNU RVG toolchain
|
||||||
@@ -67,13 +69,6 @@ ifeq ($(CONFIG_RISCV_TOOLCHAIN),GNU_RVG)
|
|||||||
endif
|
endif
|
||||||
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
|
# Default toolchain
|
||||||
|
|
||||||
CC = $(CROSSDEV)gcc
|
CC = $(CROSSDEV)gcc
|
||||||
|
|||||||
Reference in New Issue
Block a user