[llvm] [Bazel] Set HAVE_MALLINFO2=1 (PR #125681)

Aaron Siddhartha Mondal via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 4 05:08:43 PST 2025


https://github.com/aaronmondal created https://github.com/llvm/llvm-project/pull/125681

This silences the annoying warning from `llvm/lib/Support/Process.cpp`.

>From 02eb513848d4160bc4461cceb77f0ac9c8a92698 Mon Sep 17 00:00:00 2001
From: Aaron Siddhartha Mondal <aaron at tracemachina.com>
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 6e703d22e775676..a90eb97050998c6 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",
 ]



More information about the llvm-commits mailing list