Better handle LTO_ENABLE (#9832)
* Better handle LTO_ENABLE Especially when calling from command line * Replace LINK_TIME_OPTIMIZATION_ENABLE with LTO_ENABLE * Remove long for LTO from show_options.mk
This commit is contained in:
parent
3f392c09b6
commit
92385b3fb6
79 changed files with 85 additions and 99 deletions
|
@ -14,7 +14,7 @@ EXTRAKEY_ENABLE = yes
|
|||
NKRO_ENABLE = yes
|
||||
|
||||
# Enable link-time optimization to reduce binary size.
|
||||
LINK_TIME_OPTIMIZATION_ENABLE = yes
|
||||
LTO_ENABLE = yes
|
||||
|
||||
# Disable unused build options on all keyboards.
|
||||
COMMAND_ENABLE = no
|
||||
|
|
|
@ -10,7 +10,7 @@ SPACE_CADET_ENABLE = no
|
|||
LEADER_ENABLE = no
|
||||
DYNAMIC_MACRO_ENABLE = yes
|
||||
|
||||
LINK_TIME_OPTIMIZATION_ENABLE = yes
|
||||
LTO_ENABLE = yes
|
||||
|
||||
ifeq ($(strip $(KEYBOARD)), planck/rev3)
|
||||
AUDIO_ENABLE = no
|
||||
|
@ -29,4 +29,3 @@ ifeq ($(strip $(KEYBOARD)), planck/light)
|
|||
BACKLIGHT_ENABLE = no
|
||||
RGB_MATRIX_ENABLE = yes
|
||||
endif
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ SRC += issmirnov.c
|
|||
|
||||
# https://www.reddit.com/r/olkb/comments/bmpgjm/programming_help/
|
||||
# Should shave 2000 bytes
|
||||
LINK_TIME_OPTIMIZATION_ENABLE = yes
|
||||
LTO_ENABLE = yes
|
||||
|
||||
# Enable debugging only when needed.
|
||||
CONSOLE_ENABLE = yes # +400 bytes (hid_listen support)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
SRC += kuchosauronad0.c \
|
||||
process_records.c
|
||||
|
||||
LINK_TIME_OPTIMIZATION_ENABLE = yes
|
||||
LTO_ENABLE = yes
|
||||
SPACE_CADET_ENABLE = no
|
||||
|
||||
ifneq ($(strip $(RGBLIGHT_ENABLE)),yes )
|
||||
|
@ -24,7 +24,7 @@ ifeq ($(strip $(LEADER_ENABLE)), yes)
|
|||
SRC += leader.c
|
||||
endif
|
||||
|
||||
ifneq ("$(wildcard $(USER_PATH)/secrets.c)","")
|
||||
ifneq ("$(wildcard $(USER_PATH)/secrets.c)","")
|
||||
SRC += secrets.c
|
||||
endif
|
||||
ifeq ($(strip $(NO_SECRETS)), yes)
|
||||
|
|
|
@ -14,6 +14,6 @@ SRC += pvinis.c # add userspace file
|
|||
|
||||
## Some extra stuff to make firmware smaller.
|
||||
|
||||
# LINK_TIME_OPTIMIZATION_ENABLE = yes
|
||||
# LTO_ENABLE = yes
|
||||
# CONSOLE_ENABLE = no
|
||||
# COMMAND_ENABLE = no
|
||||
|
|
|
@ -2,7 +2,7 @@ BOOTMAGIC = lite
|
|||
DYNAMIC_KEYMAP_ENABLE = no
|
||||
CONSOLE_ENABLE = yes
|
||||
COMMAND_ENABLE = yes
|
||||
LINK_TIME_OPTIMIZATION_ENABLE = yes
|
||||
LTO_ENABLE = yes
|
||||
AUDIO_ENABLE = no
|
||||
|
||||
# only enable audio on specific boards
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
SRC += yet-another-developer.c \
|
||||
process_records.c
|
||||
|
||||
LINK_TIME_OPTIMIZATION_ENABLE = yes
|
||||
LTO_ENABLE = yes
|
||||
SPACE_CADET_ENABLE = no
|
||||
|
||||
ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue