[PATCH] D126415: [gn build] Set llvm_have_mallinfo2 to true by default
    Arthur Eubanks via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed May 25 13:34:38 PDT 2022
    
    
  
aeubanks created this revision.
aeubanks added reviewers: peterwaller-arm, pcc, thakis.
Herald added a project: All.
aeubanks requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
If you are using an old enough glibc which doesn't have mallinfo2, set
`llvm_have_mallinfo2 = false`.
At this point it's likely that most people using the gn build are
compiling against a recent enough glibc (glibc 2.33 which was released
in Feb 2021).
Repository:
  rG LLVM Github Monorepo
https://reviews.llvm.org/D126415
Files:
  llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
Index: llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
===================================================================
--- llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
+++ llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
@@ -50,7 +50,7 @@
 
   # glibc is at least 2.33 which has mallinfo2.
   # TODO: remove this once nobody using the gn build is building against an old glibc.
-  llvm_have_mallinfo2 = false
+  llvm_have_mallinfo2 = true
 }
 
 write_cmake_config("abi-breaking") {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126415.432109.patch
Type: text/x-patch
Size: 518 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220525/80d8b640/attachment.bin>
    
    
More information about the llvm-commits
mailing list