diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2021-03-10 22:54:22 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2021-03-11 14:52:55 +0900 |
commit | 4c273d23c44ad49c73353737b303e78585a4503f (patch) | |
tree | 4f1d939e32e986283177ac978de47451781208eb /arch/Kconfig | |
parent | 64bfc99429a5c9613fffb0e54f2f8c2ddc8c1d04 (diff) | |
download | linux-4c273d23c44ad49c73353737b303e78585a4503f.tar.gz linux-4c273d23c44ad49c73353737b303e78585a4503f.tar.bz2 linux-4c273d23c44ad49c73353737b303e78585a4503f.zip |
kbuild: remove LLVM=1 test from HAS_LTO_CLANG
As Documentation/kbuild/llvm.rst notes, LLVM=1 switches the default of
tools, but you can still override CC, LD, etc. individually. This LLVM=1
check is unneeded because each tool is already checked separately.
"make CC=clang LD=ld.lld NM=llvm-nm AR=llvm-ar LLVM_IAS=1 menuconfig"
should be able to enable Clang LTO.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Diffstat (limited to 'arch/Kconfig')
-rw-r--r-- | arch/Kconfig | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/Kconfig b/arch/Kconfig index 2e7139b39e8f..ecfd3520b676 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -632,7 +632,6 @@ config HAS_LTO_CLANG def_bool y # Clang >= 11: https://github.com/ClangBuiltLinux/linux/issues/510 depends on CC_IS_CLANG && CLANG_VERSION >= 110000 && LD_IS_LLD - depends on $(success,test $(LLVM) -eq 1) depends on $(success,test $(LLVM_IAS) -eq 1) depends on $(success,$(NM) --help | head -n 1 | grep -qi llvm) depends on $(success,$(AR) --help | head -n 1 | grep -qi llvm) |