Skip to content

Commit 735e7f0

Browse files
authored
add LTO flags
1 parent 7a9c8ee commit 735e7f0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main/component.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ CXXFLAGS:=$(filter-out $(rm_objects),$(CXXFLAGS))
55
add_objects=-fno-rtti -ffat-lto-objects -flto-compression-level=9 -flto-partition=max -flto=auto
66
CFLAGS +=$(add_objects)
77
CXXFLAGS +=$(add_objects)
8+
9+
add_ldflags=-flto -fuse-linker-plugin
10+
LDFLAGS= +=$(add_ldflags)

0 commit comments

Comments
 (0)