diff --git a/src/base/allocator/partition_allocator/partition_alloc_config.h b/src/base/allocator/partition_allocator/partition_alloc_config.h index bb6195f590..6db7c24651 100644 --- a/src/base/allocator/partition_allocator/partition_alloc_config.h +++ b/src/base/allocator/partition_allocator/partition_alloc_config.h @@ -152,10 +152,11 @@ static_assert(sizeof(void*) != 8, ""); (!BUILDFLAG(PUT_REF_COUNT_IN_PREVIOUS_SLOT) && \ defined(ARCH_CPU_LITTLE_ENDIAN)) -#define PA_CONFIG_HAS_MEMORY_TAGGING() \ - (defined(ARCH_CPU_ARM64) && defined(__clang__) && \ - !defined(ADDRESS_SANITIZER) && \ - (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_ANDROID))) +#define PA_CONFIG_HAS_MEMORY_TAGGING() \ + (defined(ARCH_CPU_ARM64) && defined(__clang__) && \ + !defined(ADDRESS_SANITIZER) && \ + (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_ANDROID))) && \ + defined(LIBC_GLIBC) #if PA_CONFIG(HAS_MEMORY_TAGGING) static_assert(sizeof(void*) == 8);