Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Sep 2010 19:16:10 +0000
From:      Paul B Mahol <onemda@gmail.com>
To:        Dimitry Andric <dim@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Clang now builds world and kernel, on i386 and amd64
Message-ID:  <AANLkTikq4iZJHK2cs7WjtMXm-c7Lci-wVGdmtKONMQB5@mail.gmail.com>
In-Reply-To: <4C99A53E.7060707@FreeBSD.org>
References:  <4C99A53E.7060707@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 9/22/10, Dimitry Andric <dim@freebsd.org> wrote:
> Hi,
>
> As of r212979, you should now be able to build world and kernel on i386
> and amd64 with clang, without any additional patches!
>
> To do so, make sure you have updated your installed world to at least
> r212904 (which has the most recently imported clang/llvm snapshot), and
> put the following in /etc/src.conf:
>
> .if !defined(CC) || ${CC} == "cc"
> CC=clang
> .endif
> .if !defined(CXX) || ${CXX} == "c++"
> CXX=clang++
> .endif
> # Don't die on warnings
> NO_WERROR=
> WERROR=
>
> Both world and kernel can also be installed, and should run properly,
> but please make sure you have a way to revert if anything unexpected
> happens. :)  Alternatively, just install into a chroot to try it out
> from there.
>
> Some additional information can be found on this wiki page:
>
> http://wiki.freebsd.org/BuildingFreeBSDWithClang
>
> Thanks to all the people that made this possible, especially Roman
> Divacky, Ed Schouten, Rui Paulo, and of course the clang/llvm
> developers.

When to expect to get rid of GNU as and other binutils tools?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikq4iZJHK2cs7WjtMXm-c7Lci-wVGdmtKONMQB5>