From e1c4b96f21b1b3558ab74d24ad5f6fddd46b8d20 Mon Sep 17 00:00:00 2001 From: Alistair Delva Date: Fri, 5 Mar 2021 16:25:29 -0800 Subject: [PATCH] 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 Change-Id: I671b2980b9aaed7dee29ea06ad5625ff6d13cbba --- arch/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/Kconfig b/arch/Kconfig index e6b50e814d37..26916e0fe179 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -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