From 02eb513848d4160bc4461cceb77f0ac9c8a92698 Mon Sep 17 00:00:00 2001 From: Aaron Siddhartha Mondal Date: Tue, 4 Feb 2025 14:06:29 +0100 Subject: [PATCH] [Bazel] Set HAVE_MALLINFO2=1 This silences the annoying warning from `llvm/lib/Support/Process.cpp`. --- utils/bazel/llvm-project-overlay/llvm/config.bzl | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/bazel/llvm-project-overlay/llvm/config.bzl b/utils/bazel/llvm-project-overlay/llvm/config.bzl index 6e703d22e7756..a90eb97050998 100644 --- a/utils/bazel/llvm-project-overlay/llvm/config.bzl +++ b/utils/bazel/llvm-project-overlay/llvm/config.bzl @@ -48,6 +48,7 @@ posix_defines = [ linux_defines = posix_defines + [ "_GNU_SOURCE", "HAVE_MALLINFO=1", + "HAVE_MALLINFO2=1", "HAVE_SBRK=1", "HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC=1", ]