Hello everyone, I am a newbie to LLVM and I am trying to develop an LLVM pass. I came across this page "Writing an LLVM Pass" which said, "First, configure and build LLVM. This needs to be done directly inside the LLVM source tree rather than in a separate objects directory. " where as LLVM installation page says to have a separate build directory for putting all the binaries. I am trying to understand why this distinction of having to build LLVM inside source when debuggers can still refer to the source files from build directory? Please correct me if I am wrong. Thanks,Amruth -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120604/fe79d599/attachment.html>
On Jun 4, 2012, at 11:05 AM, amruth.rd at knights.ucf.edu wrote:> Hello everyone, > > I am a newbie to LLVM and I am trying to develop an LLVM pass. I came across this page "Writing an LLVM Pass" which said, "First, configure and build LLVM. This needs to be done directly inside the LLVM source tree rather than in a separate objects directory. " > > where as LLVM installation page says to have a separate build directory for putting all the binaries. I am trying to understand why this distinction of having to build LLVM inside source when debuggers can still refer to the source files from build directory? > > Please correct me if I am wrong.While I can't think of why you'd want to build in the source directory for this other than weirdness with the shared object loading and the build system, it's not for debugging. Statically linked passes work just fine configuring inside or outside the source directory. -eric
On 6/4/12 1:05 PM, amruth.rd at knights.ucf.edu wrote:> Hello everyone, > > I am a newbie to LLVM and I am trying to develop an LLVM pass. I came > across this page "Writing an LLVM Pass" which said, "First, configure > and build LLVM. This needs to be done directly inside the LLVM source > tree rather than in a separate objects directory. "The documentation is wrong. Your object tree can be the same as your source tree, or it can be a different directory entirely. I've built LLVM passes using both configurations. I am not sure why the document says that. -- John T. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120605/2ab5b59a/attachment.html>