summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2019-11-04 15:35:47 -0800
committerFlorian Didron <fdidron@users.noreply.github.com>2020-01-09 08:57:11 +0900
commitb4ff413d6987aad5485bde7eb06191b69c810369 (patch)
treeebf5262c910abd565bd6f9ff2358f0c549afc834
parente87c2fe8cee4ea6a212309ce64a10328d629d941 (diff)
[Core] Add short form LTO_ENABLE (#7259)
For drashna's sanity's sake
-rw-r--r--tmk_core/common.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/tmk_core/common.mk b/tmk_core/common.mk
index a32abd8ebc..a69056b7dc 100644
--- a/tmk_core/common.mk
+++ b/tmk_core/common.mk
@@ -207,6 +207,9 @@ ifeq ($(strip $(SHARED_EP_ENABLE)), yes)
TMK_COMMON_DEFS += -DSHARED_EP_ENABLE
endif
+ifeq ($(strip $(LTO_ENABLE)), yes)
+ LINK_TIME_OPTIMIZATION_ENABLE = yes
+endif
ifeq ($(strip $(LINK_TIME_OPTIMIZATION_ENABLE)), yes)
EXTRAFLAGS += -flto