Skip to content

Commit

Permalink
Makefile: lld: use --lto-Os
Browse files Browse the repository at this point in the history
Even O2 is agressive
  • Loading branch information
ghazzor authored Jun 11, 2024
1 parent 59bb9e6 commit cc2be5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ endif
KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable)

ifeq ($(ld-name),lld)
LDFLAGS += --lto-O2
LDFLAGS += --lto-Os
endif

KBUILD_CFLAGS += $(call cc-disable-warning, unused-const-variable)
Expand Down

0 comments on commit cc2be5e

Please sign in to comment.