Hi all! I didn't manage to link my regalloc to lli (I added USEDLIBS to its makefile). Without it I can't run tests cause they need lli to be built. So how can I link createMyRegisterAllocator function to lli? Thanks. On 8/22/06, Anton Vayvod <avayvod at gmail.com> wrote:> > I managed to link my RegAlloc.a library to llc tool but can;t make the > same with lli tool. > > Should I use USEDLIBS variable in lli makefile (like llc) or there is > another way? >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060902/8f01ff65/attachment.html>
On Sat, 2 Sep 2006, Anton Vayvod wrote:> I didn't manage to link my regalloc to lli (I added USEDLIBS to its > makefile). Without it I can't run tests cause they need lli to be built. So > how can I link createMyRegisterAllocator function to lli?Make sure to add it to Codegen/LinkAllCodegenComponents.h. -Chris> On 8/22/06, Anton Vayvod <avayvod at gmail.com> wrote: >> >> I managed to link my RegAlloc.a library to llc tool but can;t make the >> same with lli tool. >> >> Should I use USEDLIBS variable in lli makefile (like llc) or there is >> another way? >> >-Chris -- http://nondot.org/sabre/ http://llvm.org/
On 9/2/06, Chris Lattner <sabre at nondot.org> wrote:> > Make sure to add it to Codegen/LinkAllCodegenComponents.h.I'm sure I did. I did so from the first time and I also needed to add my library .a file to the USEDLIBS variable within llc makefile to build llc. I wonder how lli links with all the rest LLVM as it seems to include no lib within its makefile. May be I need to include/link my lib somewhere else? Thanks, Tony. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060902/f09535e4/attachment.html>