Skip to content

Commit

Permalink
Output an error message if LINK_TIME_OPTIMIZATION_ENABLE is set but L…
Browse files Browse the repository at this point in the history
…TO_ENABLE is not (qmk#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.
  • Loading branch information
dacut authored and drashna committed Sep 30, 2020
1 parent 99951c1 commit 77a779a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tmk_core/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77a779a

Please sign in to comment.