Skip to content

Commit

Permalink
greenhills: add -Osize build option to reduce the size
Browse files Browse the repository at this point in the history
Signed-off-by: guoshichao <[email protected]>
  • Loading branch information
guoshichao authored and xiaoxiang781216 committed Sep 26, 2024
1 parent 8c651d3 commit dbe09c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/src/common/Toolchain.defs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ ifeq ($(CONFIG_DEBUG_CUSTOMOPT),y)
else ifeq ($(CONFIG_DEBUG_FULLOPT),y)
ifeq ($(CONFIG_ARCH_TOOLCHAIN_CLANG),y)
ARCHOPTIMIZATION += -Oz
else ifeq ($(CONFIG_ARM_TOOLCHAIN_GHS),y)
ARCHOPTIMIZATION += -Osize
else
ARCHOPTIMIZATION += -Os
endif
Expand Down

0 comments on commit dbe09c1

Please sign in to comment.