summaryrefslogtreecommitdiff
path: root/tmk_core/common.mk
diff options
context:
space:
mode:
authorDavid Cuthbert <dacut@kanga.org>2020-09-17 15:14:39 -0700
committerDrashna Jael're <drashna@live.com>2020-09-30 03:53:49 -0700
commit77a779ae2c47ff0696935815dc085cb04e0e2ee8 (patch)
tree5c9829f9d5db18ae78c87bc2fdb06fd88d220b2e /tmk_core/common.mk
parent99951c11d785125975c628ed14a1a38a5169a841 (diff)
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.
Diffstat (limited to 'tmk_core/common.mk')
-rw-r--r--tmk_core/common.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/tmk_core/common.mk b/tmk_core/common.mk
index 834e0e03aa..5ead3c090f 100644
--- a/tmk_core/common.mk
+++ b/tmk_core/common.mk
@@ -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