summaryrefslogtreecommitdiff
path: root/tmk_core
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2019-11-04 15:35:47 -0800
committerJames Young <18669334+noroadsleft@users.noreply.github.com>2019-11-04 15:35:47 -0800
commit29630e6e49487cbf97fa57f47b399d4d5866fe13 (patch)
tree8377d80ae7af053b17a9aeb4e98b53c973caa039 /tmk_core
parenta836c85e54bfb06cd685a5444eea377374cebea3 (diff)
[Core] Add short form LTO_ENABLE (#7259)
For drashna's sanity's sake
Diffstat (limited to 'tmk_core')
-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 db55353465..d43950299b 100644
--- a/tmk_core/common.mk
+++ b/tmk_core/common.mk
@@ -203,6 +203,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