From 4c3e84fccd814f6530984f0db89d85ecdfc8b82a Mon Sep 17 00:00:00 2001 From: Sami Tolvanen Date: Wed, 20 Mar 2019 10:15:46 -0700 Subject: [PATCH] ANDROID: kbuild: add CONFIG_LD_IS_LLD Similarly to the CC_IS_CLANG config, add LD_IS_LLD to simplify feature selection based on the linker. Bug: 133186739 Change-Id: I175ee4b33832afd1369d48dbd131fc5c39c2f71a Signed-off-by: Sami Tolvanen --- init/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init/Kconfig b/init/Kconfig index 4d6062311fae..0332548d7fa7 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -19,6 +19,9 @@ config GCC_VERSION config CC_IS_CLANG def_bool $(success,$(CC) --version | head -n 1 | grep -q clang) +config LD_IS_LLD + def_bool $(success,$(LD) -v | head -n 1 | grep -q LLD) + config CLANG_VERSION int default $(shell,$(srctree)/scripts/clang-version.sh $(CC))