mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[scripts] Use --gc-sections linker flag even when building with LTO. This saves more than 1 KB on a N0110 build here.
This commit is contained in:
@@ -20,7 +20,7 @@ endif
|
||||
|
||||
ifeq ($(LTO),1)
|
||||
# Use link-time optimization if LTO=1
|
||||
SFLAGS += -flto
|
||||
SFLAGS += -flto -Wl,--gc-sections
|
||||
else
|
||||
# Otherwise, just get rid of unused symbols
|
||||
LDFLAGS += -Wl,--gc-sections
|
||||
|
||||
Reference in New Issue
Block a user