Clang now builds world and kernel, on i386 and amd64
René Ladan
rene at freebsd.org
Wed Sep 22 11:12:27 UTC 2010
2010/9/22 Dimitry Andric <dim at freebsd.org>:
> 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=
>
I've uploaded a typescript of "make buildworld && make buildkernel" of
an 9.0-amd64
system running r212906 and building r212994 with the clang-in-HEAD:
ftp://rene-ladan.nl/pub/freebsd/bwk-clang-native.bz2
SIZE = 933354 bytes (uncompressed 36308187 bytes)
SHA256 = f97be8fb0d310ceb2e16dfc3919aeb68b57312431d7e879b6cce84b1cf8ba851
Now for the install phase, after some backups.
Rene
More information about the freebsd-current
mailing list