[all-commits] [llvm/llvm-project] 9f4cc5: [gn build] Set HAVE_MALLINFO2=1
aeubanks via All-commits
all-commits at lists.llvm.org
Fri Jan 21 13:39:17 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9f4cc5a6bb56b42bb90ea31f10ecf8fed8f07653
https://github.com/llvm/llvm-project/commit/9f4cc5a6bb56b42bb90ea31f10ecf8fed8f07653
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