diff --git a/src/base/allocator/partition_allocator/partition_alloc_config.h b/src/base/allocator/partition_allocator/partition_alloc_config.h index 7b6926505d..2b8a2ffd54 100644 --- a/src/base/allocator/partition_allocator/partition_alloc_config.h +++ b/src/base/allocator/partition_allocator/partition_alloc_config.h @@ -150,9 +150,10 @@ 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__) && \ - (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_ANDROID))) +#define PA_CONFIG_HAS_MEMORY_TAGGING() \ + (defined(ARCH_CPU_ARM64) && defined(__clang__) && \ + (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_ANDROID))) && \ + defined(LIBC_GLIBC) #if PA_CONFIG(HAS_MEMORY_TAGGING) static_assert(sizeof(void*) == 8);