[LLVMdev] compiling clang with a obj/ dir

Chris Lattner sabre at nondot.org
Sat Jul 14 12:39:12 PDT 2007


On Sat, 14 Jul 2007, Holger Schurig wrote:
> I can compile LLVM using with this method:
>
> svn co ...
> cd llvm
> ./configure ...
> make
>
> or with that one:
>
> svn co ...
> mkdir obj
> cd obj
> ../llvm/configure ...
> make
>
>
> How does the second method work with the new, experimental C
> compiler, "clang" ?  The doc said that you put the clang sourcecode
> into llvm/tools/clang, change into this directory and simply
> enter "make". This seems to be not possible with the second method, at
> least not in a way that separates sources and binaries.

It should work, but I've never tried it.  I'm a srcdir=objdir kind of 
person :).

One thing to try: after checking out clang into tools, add clang to the 
llvm/tools/Makefile line.  Then do a 'make' in your tools objdir.  It 
should just make the directories in the objdir and build like normal.

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list