[LLVMdev] building gcc with clang/llvm

Brooks Davis brooks at freebsd.org
Fri Sep 21 17:07:51 PDT 2012


On Fri, Sep 21, 2012 at 04:34:35PM -0700, reed kotler wrote:
> Has anybody tried building gcc using clang/llvm as the first stage compiler?

On FreeBSD we build gcc 4.2 with clang when clang is the system
compiler.  The build process differs from the normal gcc build process
so the final gcc is built directly with clang.  We do compile gcc
without -Werror because clang generates a lot of warnings (presumably a
modern gcc would as well).

--- Brooks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120921/9805b7ce/attachment.sig>


More information about the llvm-dev mailing list