Attention is currently required from: Martin L Roth.
Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/70159 )
Change subject: Makefile.inc: Optimize even more for size with clang ......................................................................
Makefile.inc: Optimize even more for size with clang
This results in even smaller binaries.
Change-Id: Ic94a48fc47c289da8414cad82b2c092bf288e6e9 Signed-off-by: Arthur Heymans arthur@aheymans.xyz --- M Makefile.inc 1 file changed, 16 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/59/70159/1
diff --git a/Makefile.inc b/Makefile.inc index ef565c2..8a540b0 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -490,7 +490,11 @@ CFLAGS_common += -Og ADAFLAGS_common += -Og else +ifeq ($(CONFIG_COMPILER_CLANG),y) # Also enable with GCC 12 +CFLAGS_common += -Oz +else CFLAGS_common += -Os +endif ADAFLAGS_common += -Os endif