mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-17 05:02:07 +00:00
Use LINK_TIME_OPTIMIZATION_ENABLE instead of Link_Time_Optimization
No change in build result.
This commit is contained in:
parent
5dac20cd0f
commit
1a8461acfd
@ -39,13 +39,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
// ./tmk_core
|
// ./tmk_core
|
||||||
// ......
|
// ......
|
||||||
|
|
||||||
#ifdef USE_Link_Time_Optimization
|
|
||||||
// LTO has issues with macros (action_get_macro) and "functions" (fn_actions),
|
|
||||||
// so just disable them
|
|
||||||
#define NO_ACTION_MACRO
|
|
||||||
#define NO_ACTION_FUNCTION
|
|
||||||
|
|
||||||
#define DISABLE_LEADER
|
|
||||||
#endif // USE_Link_Time_Optimization
|
|
||||||
|
|
||||||
#endif /* CONFIG_H */
|
#endif /* CONFIG_H */
|
||||||
|
@ -35,7 +35,7 @@ LED_BACK_ENABLE = no # LED backlight (Enable WS2812 RGB underlight.)
|
|||||||
LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
|
LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
|
||||||
LED_ANIMATIONS = no # LED animations
|
LED_ANIMATIONS = no # LED animations
|
||||||
IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
|
IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
|
||||||
Link_Time_Optimization = no # if firmware size over limit, try this option
|
LINK_TIME_OPTIMIZATION_ENABLE = no # if firmware size over limit, try this option
|
||||||
|
|
||||||
#### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
|
#### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
|
||||||
#### Do not enable these with audio at the same time.
|
#### Do not enable these with audio at the same time.
|
||||||
@ -105,17 +105,13 @@ endif
|
|||||||
|
|
||||||
ifeq ($(strip $(AUDIO_ENABLE)),yes)
|
ifeq ($(strip $(AUDIO_ENABLE)),yes)
|
||||||
ifeq ($(strip $(RGBLIGHT_ENABLE)),yes)
|
ifeq ($(strip $(RGBLIGHT_ENABLE)),yes)
|
||||||
Link_Time_Optimization = yes
|
LINK_TIME_OPTIMIZATION_ENABLE = yes
|
||||||
endif
|
endif
|
||||||
ifeq ($(strip $(OLED_ENABLE)),yes)
|
ifeq ($(strip $(OLED_ENABLE)),yes)
|
||||||
Link_Time_Optimization = yes
|
LINK_TIME_OPTIMIZATION_ENABLE = yes
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(Link_Time_Optimization)),yes)
|
|
||||||
EXTRAFLAGS += -flto -DUSE_Link_Time_Optimization
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ LED_BACK_ENABLE = no # LED backlight (Enable WS2812 RGB underlight.)
|
|||||||
LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
|
LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
|
||||||
LED_ANIMATIONS = yes # LED animations
|
LED_ANIMATIONS = yes # LED animations
|
||||||
IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
|
IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
|
||||||
Link_Time_Optimization = no # if firmware size over limit, try this option
|
LINK_TIME_OPTIMIZATION_ENABLE = no # if firmware size over limit, try this option
|
||||||
|
|
||||||
#### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
|
#### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
|
||||||
#### Do not enable these with audio at the same time.
|
#### Do not enable these with audio at the same time.
|
||||||
@ -105,17 +105,13 @@ endif
|
|||||||
|
|
||||||
ifeq ($(strip $(AUDIO_ENABLE)),yes)
|
ifeq ($(strip $(AUDIO_ENABLE)),yes)
|
||||||
ifeq ($(strip $(RGBLIGHT_ENABLE)),yes)
|
ifeq ($(strip $(RGBLIGHT_ENABLE)),yes)
|
||||||
Link_Time_Optimization = yes
|
LINK_TIME_OPTIMIZATION_ENABLE = yes
|
||||||
endif
|
endif
|
||||||
ifeq ($(strip $(OLED_ENABLE)),yes)
|
ifeq ($(strip $(OLED_ENABLE)),yes)
|
||||||
Link_Time_Optimization = yes
|
LINK_TIME_OPTIMIZATION_ENABLE = yes
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(Link_Time_Optimization)),yes)
|
|
||||||
EXTRAFLAGS += -flto -DUSE_Link_Time_Optimization
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ LED_BACK_ENABLE = no # LED backlight (Enable WS2812 RGB underlight.)
|
|||||||
LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
|
LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
|
||||||
LED_ANIMATIONS = yes # LED animations
|
LED_ANIMATIONS = yes # LED animations
|
||||||
IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
|
IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
|
||||||
Link_Time_Optimization = no # if firmware size over limit, try this option
|
LINK_TIME_OPTIMIZATION_ENABLE = no # if firmware size over limit, try this option
|
||||||
|
|
||||||
#### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
|
#### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
|
||||||
#### Do not enable these with audio at the same time.
|
#### Do not enable these with audio at the same time.
|
||||||
@ -105,17 +105,13 @@ endif
|
|||||||
|
|
||||||
ifeq ($(strip $(AUDIO_ENABLE)),yes)
|
ifeq ($(strip $(AUDIO_ENABLE)),yes)
|
||||||
ifeq ($(strip $(RGBLIGHT_ENABLE)),yes)
|
ifeq ($(strip $(RGBLIGHT_ENABLE)),yes)
|
||||||
Link_Time_Optimization = yes
|
LINK_TIME_OPTIMIZATION_ENABLE = yes
|
||||||
endif
|
endif
|
||||||
ifeq ($(strip $(OLED_ENABLE)),yes)
|
ifeq ($(strip $(OLED_ENABLE)),yes)
|
||||||
Link_Time_Optimization = yes
|
LINK_TIME_OPTIMIZATION_ENABLE = yes
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(Link_Time_Optimization)),yes)
|
|
||||||
EXTRAFLAGS += -flto -DUSE_Link_Time_Optimization
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ LED_BACK_ENABLE = no # LED backlight (Enable WS2812 RGB underlight.)
|
|||||||
LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
|
LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
|
||||||
LED_ANIMATIONS = yes # LED animations
|
LED_ANIMATIONS = yes # LED animations
|
||||||
IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
|
IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
|
||||||
Link_Time_Optimization = no # if firmware size over limit, try this option
|
LINK_TIME_OPTIMIZATION_ENABLE = no # if firmware size over limit, try this option
|
||||||
|
|
||||||
#### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
|
#### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
|
||||||
#### Do not enable these with audio at the same time.
|
#### Do not enable these with audio at the same time.
|
||||||
@ -111,10 +111,6 @@ ifeq ($(strip $(LOCAL_GLCDFONT)), yes)
|
|||||||
OPT_DEFS += -DLOCAL_GLCDFONT
|
OPT_DEFS += -DLOCAL_GLCDFONT
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(Link_Time_Optimization)),yes)
|
|
||||||
EXTRAFLAGS += -flto -DUSE_Link_Time_Optimization
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ LED_BACK_ENABLE = no # LED backlight (Enable WS2812 RGB underlight.)
|
|||||||
LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
|
LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
|
||||||
LED_ANIMATIONS = yes # LED animations
|
LED_ANIMATIONS = yes # LED animations
|
||||||
IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
|
IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
|
||||||
Link_Time_Optimization = no # if firmware size over limit, try this option
|
LINK_TIME_OPTIMIZATION_ENABLE = no # if firmware size over limit, try this option
|
||||||
|
|
||||||
#### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
|
#### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
|
||||||
#### Do not enable these with audio at the same time.
|
#### Do not enable these with audio at the same time.
|
||||||
@ -115,10 +115,6 @@ ifeq ($(strip $(LOCAL_GLCDFONT)), yes)
|
|||||||
OPT_DEFS += -DLOCAL_GLCDFONT
|
OPT_DEFS += -DLOCAL_GLCDFONT
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(Link_Time_Optimization)),yes)
|
|
||||||
EXTRAFLAGS += -flto -DUSE_Link_Time_Optimization
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ LED_BACK_ENABLE = no # LED backlight (Enable WS2812 RGB underlight.)
|
|||||||
LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
|
LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
|
||||||
LED_ANIMATIONS = yes # LED animations
|
LED_ANIMATIONS = yes # LED animations
|
||||||
IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
|
IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
|
||||||
Link_Time_Optimization = no # if firmware size over limit, try this option
|
LINK_TIME_OPTIMIZATION_ENABLE = no # if firmware size over limit, try this option
|
||||||
|
|
||||||
#### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
|
#### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
|
||||||
#### Do not enable these with audio at the same time.
|
#### Do not enable these with audio at the same time.
|
||||||
@ -118,10 +118,6 @@ ifeq ($(strip $(LOCAL_GLCDFONT)), yes)
|
|||||||
OPT_DEFS += -DLOCAL_GLCDFONT
|
OPT_DEFS += -DLOCAL_GLCDFONT
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(Link_Time_Optimization)),yes)
|
|
||||||
EXTRAFLAGS += -flto -DUSE_Link_Time_Optimization
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ LED_BACK_ENABLE = no # LED backlight (Enable WS2812 RGB underlight.)
|
|||||||
LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
|
LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
|
||||||
LED_ANIMATIONS = yes # LED animations
|
LED_ANIMATIONS = yes # LED animations
|
||||||
IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
|
IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
|
||||||
Link_Time_Optimization = no # if firmware size over limit, try this option
|
LINK_TIME_OPTIMIZATION_ENABLE = no # if firmware size over limit, try this option
|
||||||
|
|
||||||
#### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
|
#### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
|
||||||
#### Do not enable these with audio at the same time.
|
#### Do not enable these with audio at the same time.
|
||||||
@ -111,10 +111,6 @@ ifeq ($(strip $(LOCAL_GLCDFONT)), yes)
|
|||||||
OPT_DEFS += -DLOCAL_GLCDFONT
|
OPT_DEFS += -DLOCAL_GLCDFONT
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(Link_Time_Optimization)),yes)
|
|
||||||
EXTRAFLAGS += -flto -DUSE_Link_Time_Optimization
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ LED_BACK_ENABLE = yes # LED backlight (Enable WS2812 RGB underlight.)
|
|||||||
LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
|
LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
|
||||||
LED_ANIMATIONS = yes # LED animations
|
LED_ANIMATIONS = yes # LED animations
|
||||||
IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
|
IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
|
||||||
Link_Time_Optimization = no # if firmware size over limit, try this option
|
LINK_TIME_OPTIMIZATION_ENABLE = no # if firmware size over limit, try this option
|
||||||
|
|
||||||
#### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
|
#### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
|
||||||
#### Do not enable these with audio at the same time.
|
#### Do not enable these with audio at the same time.
|
||||||
@ -111,10 +111,6 @@ ifeq ($(strip $(LOCAL_GLCDFONT)), yes)
|
|||||||
OPT_DEFS += -DLOCAL_GLCDFONT
|
OPT_DEFS += -DLOCAL_GLCDFONT
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(Link_Time_Optimization)),yes)
|
|
||||||
EXTRAFLAGS += -flto -DUSE_Link_Time_Optimization
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ LED_BACK_ENABLE = yes # LED backlight (Enable WS2812 RGB underlight.)
|
|||||||
LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
|
LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
|
||||||
LED_ANIMATIONS = yes # LED animations
|
LED_ANIMATIONS = yes # LED animations
|
||||||
IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
|
IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
|
||||||
Link_Time_Optimization = no # if firmware size over limit, try this option
|
LINK_TIME_OPTIMIZATION_ENABLE = no # if firmware size over limit, try this option
|
||||||
|
|
||||||
#### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
|
#### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
|
||||||
#### Do not enable these with audio at the same time.
|
#### Do not enable these with audio at the same time.
|
||||||
@ -111,10 +111,6 @@ ifeq ($(strip $(LOCAL_GLCDFONT)), yes)
|
|||||||
OPT_DEFS += -DLOCAL_GLCDFONT
|
OPT_DEFS += -DLOCAL_GLCDFONT
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(Link_Time_Optimization)),yes)
|
|
||||||
EXTRAFLAGS += -flto -DUSE_Link_Time_Optimization
|
|
||||||
endif
|
|
||||||
|
|
||||||
SRC += led_test_init.c
|
SRC += led_test_init.c
|
||||||
|
|
||||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
|
Loading…
Reference in New Issue
Block a user