[LLVMdev] installation query

Eric Christopher echristo at apple.com
Mon Jun 4 11:18:00 PDT 2012


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



More information about the llvm-dev mailing list