[LLVMdev] Changed: Build errors for poolalloc using MinGW/gcc 4.4.0

Andrew Lenharth andrewl at lenharth.org
Tue Mar 9 09:26:52 PST 2010


The patch below adds dsa and some of poolalloc to opt.  It should be
simple enough to extend to all of poolalloc by adding more classes to
LinkDSA.h.

Andrew

Index: tools/opt/opt.cpp
===================================================================
--- tools/opt/opt.cpp   (revision 97995)
+++ tools/opt/opt.cpp   (working copy)
@@ -38,6 +38,12 @@
 #include "llvm/LinkAllVMCore.h"
 #include <memory>
 #include <algorithm>
+
+#include "dsa/DSGraph.h"
+#include "dsa/DataStructure.h"
+#include "poolalloc/RunTimeAssociate.h"
+#include "LinkDSA.h"
+
 using namespace llvm;

 // The OptimizationList is automatically populated with registered
Passes by the
Index: tools/opt/Makefile
===================================================================
--- tools/opt/Makefile  (revision 97995)
+++ tools/opt/Makefile  (working copy)
@@ -12,3 +12,8 @@
 LINK_COMPONENTS := bitreader bitwriter asmparser instrumentation scalaropts ipo

 include $(LEVEL)/Makefile.common
+
+CPP.Flags += -I../../projects/poolalloc/include
+
+ExtraLibs := ../../projects/poolalloc/$(BuildMode)/lib/libpoolalloc.a \
+       ../../projects/poolalloc/$(BuildMode)/lib/libLLVMDataStructure.a


On Tue, Mar 9, 2010 at 11:13 AM, John Criswell <criswell at uiuc.edu> wrote:
> Dear Patrick and Antron,
>
> I've modified the Makefiles in the poolalloc module so that they do not
> build shared libraries on MingW or Cygwin.  Patrick, if you do an "svn
> up" you should be able to compile the poolalloc project now.
>
> -- John T.
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>




More information about the llvm-dev mailing list