[all-commits] [llvm/llvm-project] 6df056: [gn build] Set HAVE_MALLINFO2=1

aeubanks via All-commits all-commits at lists.llvm.org
Fri Jan 21 14:03:06 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6df05697ca1d3e691f674014f7728ff71147bbe7
      https://github.com/llvm/llvm-project/commit/6df05697ca1d3e691f674014f7728ff71147bbe7
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2022-01-21 (Fri, 21 Jan 2022)

  Changed paths:
    M llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn

  Log Message:
  -----------
  [gn build] Set HAVE_MALLINFO2=1

I'm seeing deprecated warnings due to using mallinfo() instead of
mallinfo2().

  ../../llvm/lib/Support/Unix/Process.inc:98:10: warning: 'mallinfo' is deprecated [-Wdeprecated-declarations]
    mi = ::mallinfo();

mallinfo2() is part of glibc 2.33 which was released in Feb 2021, which
is fairly recent but I think gn users should be using fairly up to date
glibcs.

If this breaks people we could make this a gn arg instead.

Differential Revision: https://reviews.llvm.org/D117916




More information about the All-commits mailing list