Date: Wed, 27 Feb 2013 09:30:10 -0600 From: Brooks Davis <brooks@freebsd.org> To: Alfred Perlstein <bright@mu.org> Cc: Brooks Davis <brooks@freebsd.org>, freebsd-arch@freebsd.org Subject: Re: [RFC] external compiler support Message-ID: <20130227153010.GA17489@lor.one-eyed-alien.net> In-Reply-To: <512D77D9.9020205@mu.org> References: <20130227003517.GB7348@lor.one-eyed-alien.net> <512D77D9.9020205@mu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 26, 2013 at 07:04:57PM -0800, Alfred Perlstein wrote: > On 2/26/13 4:35 PM, Brooks Davis wrote: > > Below (and at http://people.freebsd.org/~brooks/patches/xcc.diff) you > > can find an initial patch with proposed commit for external compiler > > support. It relies on the existing cross binutils as I'm finding that > > the two are fairly separable. With this patch I've been able to build > > from amd64 to arm, amd64, and i386 using clang from the lang/clang-devel > > port. I've also compiled the tree with a customized clang being > > developed at the University of Cambridge. > > > > The patch is untested with gcc. > > > > Does this seem like a reasonable approach? I do plan to look at extern= al > > binutils support, but it's not on the critical path for our current work > > so I've opted to avoid it for now. > > > > As a bonus for those who don't need an external compiler, but do run > > make buildworld frequently, the XCC, XCXX, and XCPP variables can be set > > to the location of the installed base system compiler to avoid building > > the compiler twice during buildworld. >=20 > This is very cool work and it's non-invasive. Are there any downsides=20 > to bringing it in? (I can't see any). Other than an increasing pile of code to set up the cross build environment, I don't see a downside. It should be a no-op for most users. -- Brooks --FL5UXtIhxfXey3p5 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iD8DBQFRLiaCXY6L6fI4GtQRAuW+AKCQLKeRr26MpkQOW0dgd27ahFNwPQCgqETH 4QQh7UMEAwCxIgHa50MBCtM= =x4Iu -----END PGP SIGNATURE----- --FL5UXtIhxfXey3p5--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130227153010.GA17489>