[LLVMdev] building gcc with clang/llvm

Reed Kotler rkotler at mips.com
Sat Sep 22 17:14:34 PDT 2012


On 09/21/2012 04:34 PM, reed kotler wrote:
> Has anybody tried building gcc using clang/llvm as the first stage
> compiler?
>
> Tia
>
> Reed

I tried this and it seems to work.

Just:

export CC=<bin for clang>

and then when you run configure for gcc, it will use clang for the first 
stage.

There were some warnings but the results several phase bootstrapped gcc 
seemed to work.



More information about the llvm-dev mailing list