Trying to use clang/head and XCC

Brooks Davis brooks at freebsd.org
Tue May 19 21:17:40 UTC 2015


On Tue, May 19, 2015 at 01:35:32PM -0700, Dave Seifert wrote:
> sean typed:
> > No documentation of what CFLAGS are required to build and ignore warnings.
> 
> Are you *sure* that ignoring those warnings is a good idea?
> 
> Brooks typed:
> > In principle clang could be used as the cross compiler
> > since it's multi-target, but gcc could never work unless the host and
> > target are the same.
> 
> I have compiled NetBSD/alpha on FreeBSD/amd64 using gcc and it worked fine.

A single gcc binary will only allow you to build for one target so you
could only use the same gcc for bootstrap tools and the target if they
happen to be the same.  We could support external compilers for both cases,
but that's not what I implemented with the X* cross tool support.

-- Brooks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20150519/ff54c2ba/attachment.sig>


More information about the freebsd-hackers mailing list