xtensa: enable -Oz for xtensa to reduce codesize
This commit is contained in:
parent
adf9e685ab
commit
1a832eb554
@ -307,7 +307,7 @@ config XTENSA_TOOLCHAIN_XCC
|
||||
|
||||
config XTENSA_TOOLCHAIN_XCLANG
|
||||
bool "Xtensa Toolchain use CLANG as front end"
|
||||
select ARCH_TOOLCHAIN_GNU
|
||||
select ARCH_TOOLCHAIN_CLANG
|
||||
|
||||
config XTENSA_TOOLCHAIN_ESP
|
||||
bool "ESP toolchain for xtensa"
|
||||
|
@ -58,7 +58,11 @@ endif
|
||||
ifeq ($(CONFIG_DEBUG_CUSTOMOPT),y)
|
||||
ARCHOPTIMIZATION += $(CONFIG_DEBUG_OPTLEVEL)
|
||||
else ifeq ($(CONFIG_DEBUG_FULLOPT),y)
|
||||
ARCHOPTIMIZATION += -Os
|
||||
ifeq ($(CONFIG_ARCH_TOOLCHAIN_CLANG),y)
|
||||
ARCHOPTIMIZATION += -Oz
|
||||
else
|
||||
ARCHOPTIMIZATION += -Os
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(CONFIG_DEBUG_NOOPT),y)
|
||||
|
Loading…
Reference in New Issue
Block a user