Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Apr 2011 20:15:03 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Alexander Best <arundel@FreeBSD.org>
Cc:        Juli Mallett <jmallett@FreeBSD.org>, svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, Ulrich Spoerlein <uqs@FreeBSD.org>
Subject:   Re: svn commit: r220401 - in head: . share/mk tools/build/mk tools/build/options
Message-ID:  <D05CD16D-494B-4902-9D1E-F2AA349CE0F3@bsdimp.com>
In-Reply-To: <20110406214133.GA66860@freebsd.org>
References:  <201104062008.p36K8NR0015687@svn.freebsd.org> <20110406210416.GA62173@freebsd.org> <BANLkTik=kCL79VrcWsChoRexjxgdfCAB2Q@mail.gmail.com> <20110406214133.GA66860@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Apr 6, 2011, at 3:41 PM, Alexander Best wrote:

> On Wed Apr  6 11, Juli Mallett wrote:
>> On Wed, Apr 6, 2011 at 14:04, Alexander Best <arundel@freebsd.org> =
wrote:
>>> On Wed Apr  6 11, Ulrich Spoerlein wrote:
>>>> Author: uqs
>>>> Date: Wed Apr  6 20:08:23 2011
>>>> New Revision: 220401
>>>> URL: http://svn.freebsd.org/changeset/base/220401
>>>>=20
>>>> Log:
>>>>   Complete WITHOUT_CXX support. It implies WITHOUT_GROFF and
>>>>   WITHOUT_CLANG.
>>>=20
>>> is there no way to build clang/llvm without CXX support?
>>=20
>> Clang and LLVM are written in C++.  Even if their support for
>> compiling C++ could be disabled, you'd still need a C++ =
cross-compiler
>> to build them, which ought to be disabled by WITHOUT_CXX, right?
>=20
> good point. is it even possible to build a world *with* C++ support, =
if the
> installed world *doesn't* have C++ support? is the C++ part of gcc =
written in
> C? if that's the case it's possible.

Yes.  We don't need c++ to bootstrap g++ or anything else in the base =
system.  Once we build the compilers, we can build the c++ that's in the =
tree.

> couldn't we install clang *without* C++ support and then do the =
following to
> build it *with* C++ support:
>=20
> 1) use gcc to build a bootstrap gcc *with* C++ support
> 2) use the bootstrap gcc to build clang

I suppose you could do that, but I'm unsure how much that buys you...

Warner=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D05CD16D-494B-4902-9D1E-F2AA349CE0F3>