ANDROID: Allow HAS_LTO_CLANG with KASAN_HW_TAGS

Normally enabling KASAN will disable LTO_CLANG due to an old compiler
bug, however it's unlikely such old compilers would be used with the new
KASAN_HW_TAGS feature which is only usable on new architectures, so
relax the check if KASAN_HW_TAGS is enabled.

Bug: 167259389
Signed-off-by: Alistair Delva <adelva@google.com>
Change-Id: I671b2980b9aaed7dee29ea06ad5625ff6d13cbba
This commit is contained in:
Alistair Delva
2021-03-05 16:25:29 -08:00
parent 1eeb0550cb
commit e1c4b96f21

View File

@@ -649,7 +649,7 @@ config HAS_LTO_CLANG
depends on $(success,$(AR) --help | head -n 1 | grep -qi llvm)
depends on ARCH_SUPPORTS_LTO_CLANG
depends on !FTRACE_MCOUNT_USE_RECORDMCOUNT
depends on !KASAN
depends on !KASAN || KASAN_HW_TAGS
depends on !GCOV_KERNEL
help
The compiler and Kconfig options support building with Clang's