allocator: Disable PartitionAlloc memory tagging on non-glibc

Memory tagging depends on ifunc which is glibc-specific.
This commit is contained in:
klzgrad 2023-08-05 23:35:21 +08:00
parent 78a8906047
commit 38071ef4e5

View File

@ -162,7 +162,7 @@ static_assert(sizeof(void*) != 8, "");
#if defined(ARCH_CPU_ARM64) && defined(__clang__) && \
!defined(ADDRESS_SANITIZER) && \
(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_ANDROID))
(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_ANDROID)) && defined(LIBC_GLIBC)
#define PA_CONFIG_HAS_MEMORY_TAGGING() 1
#else
#define PA_CONFIG_HAS_MEMORY_TAGGING() 0