mirror of
https://github.com/zsa/qmk_firmware.git
synced 2026-01-10 23:53:25 +00:00
Output an error message if LINK_TIME_OPTIMIZATION_ENABLE is set but LTO_ENABLE is not (#10217)
* Output an error message if LINK_TIME_OPTIMIZATION_ENABLE is set but LTO_ENABLE is not. * Update common.mk Specify that LINK_TIME_OPTIMZATION_ENABLE has been renamed, not deprecated.
This commit is contained in:
committed by
Drashna Jael're
parent
99951c11d7
commit
77a779ae2c
@@ -166,6 +166,8 @@ ifeq ($(strip $(LTO_ENABLE)), yes)
|
||||
EXTRAFLAGS += -flto
|
||||
TMK_COMMON_DEFS += -DLTO_ENABLE
|
||||
TMK_COMMON_DEFS += -DLINK_TIME_OPTIMIZATON_ENABLE
|
||||
else ifdef LINK_TIME_OPTIMIZATION_ENABLE
|
||||
$(error The LINK_TIME_OPTIMIZATION_ENABLE flag has been renamed to LTO_ENABLE.)
|
||||
endif
|
||||
|
||||
# Search Path
|
||||
|
||||
Reference in New Issue
Block a user