[LLVMdev] advice on default options for building LLVM-GCC on Ubuntu Linux

Bob Wilson bob.wilson at apple.com
Tue Apr 7 11:39:15 PDT 2009

On Apr 7, 2009, at 11:17 AM, Bill Wendling wrote:
> I understand. Believe me, I'm not a big fan of this method of building
> llvm-gcc either. But I'm not a Makefile guru, so I don't know how to
> make the two systems of building llvm-gcc compatible. Is there a FAQ
> entry on this? If not, I'll add one.

If we don't know how to fix the problem, maybe we could at least make  
the failures easier to understand.  If someone is trying to build llvm- 
gcc, they will typically not run "make install" as the first step.   
The normal GCC makefile has a default target of "all", so a typical  
GCC build will invoke make with no explicit target  or with a target  
such as "all", "bootstrap", "all-gcc", etc.  We could add those  
targets to the GNUmakefile in a rule that prints a message about  
building with objdir != srcdir.

It looks to me like Apple's build system will always invoke make with  
an explicit target, so it would be OK to make this new rule be the  
default target.

More information about the llvm-dev mailing list