Skip to content

Commit

Permalink
Makefile: Don't pass -O3 to LDFLAGS
Browse files Browse the repository at this point in the history
Signed-off-by: BladeRunner-A2C <prisoner56898@protonmail.com>
  • Loading branch information
BladeRunner-A2C authored and clarencelol committed Oct 24, 2024
1 parent 4dbf544 commit 4145b26
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 @@ -817,7 +817,7 @@ KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,)
KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable)

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

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

0 comments on commit 4145b26

Please sign in to comment.