Commit b744b43f authored by Sami Tolvanen's avatar Sami Tolvanen Committed by Thomas Bogendoerfer

kbuild: add CONFIG_LD_IS_LLD

Similarly to the CC_IS_CLANG config, add LD_IS_LLD to avoid GNU ld
specific logic such as ld-version or ld-ifversion and gain the
ability to select potential features that depend on the linker at
configuration time such as LTO.
Signed-off-by: default avatarSami Tolvanen <samitolvanen@google.com>
Acked-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
[nc: Reword commit message]
Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
Tested-by: default avatarSedat Dilek <sedat.dilek@gmail.com>
Reviewed-by: default avatarSedat Dilek <sedat.dilek@gmail.com>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent 1bec4898
...@@ -23,6 +23,9 @@ config LD_VERSION ...@@ -23,6 +23,9 @@ config LD_VERSION
config CC_IS_CLANG config CC_IS_CLANG
def_bool $(success,$(CC) --version | head -n 1 | grep -q 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 config CLANG_VERSION
int int
default $(shell,$(srctree)/scripts/clang-version.sh $(CC)) default $(shell,$(srctree)/scripts/clang-version.sh $(CC))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment