I am trying to write an LLVM pass on Windows using Cygwin. When I "make" the project, a dll gets created in the Release/bin directory instead of a .so file in the Release/lib directory. The latter is what is shown in the LLVM documentation. When I try to load this dll using the -load flag to opt, nothing happens. $opt -load ../../../Release/bin/Pass.dll -help The pass that I am trying to load isn't printed after this. How do I get this right? Thanks, Arjun -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110324/8baeca43/attachment.html>
Arjun, please try "configure --enable-shared" and link your dll to cygLLVM*.dll . With --enable-shared, you may build cygLLVMHello.dll manually, "make -C lib/Transforms/Hello" . (You can see cygBugpointPasses.dll, too) ...Takumi
I am not able to find any cygLLVM*.dll. Where are these present? What is cygBugpointPasses.dll? Thanks, On Thu, Mar 24, 2011 at 2:57 PM, NAKAMURA Takumi <geek4civic at gmail.com>wrote:> Arjun, please try "configure --enable-shared" and link your dll to > cygLLVM*.dll . > > With --enable-shared, you may build cygLLVMHello.dll manually, "make > -C lib/Transforms/Hello" . > (You can see cygBugpointPasses.dll, too) > > ...Takumi >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110324/1f04551d/attachment.html>