installation query

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.


On 6/4/12 1:05 PM, wrote: 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.