llvm/clang once more
rdivacky at FreeBSD.org
Sat Mar 28 10:57:58 PDT 2009
On Sat, Mar 28, 2009 at 10:45:23AM -0700, Matthew Dillon wrote:
> :I've managed to get our GENERIC kernel to compile with llvm/clang. There
> :is still one temporary fix (at least until clang guys fix the related
> :bug), but the kernel definitely compiles, boots and works stable.
> :As a stress test I've done a buildworld, which it survived without
> :I've put everything about DragonFly and llvm/clang so far together on
> :one page, http://leaf.dragonflybsd.org/~alexh/clang/clang.html in case
> :you are interested in details or even want to try it yourself.
> Alex, do you think it's worth bringing clang in as contrib/ code
> and adding direct 'cc' support for it via something like
> 'setenv CCVER clang1'?
> The other alternative is to get it into the pkgsrc system (instead
> of as contrib code), and still hook it into the main system by
> providing CCVER support for it.
you will need some local patches for freebsd-kernel printf extensions
and possibly some more stuff... managing it in the source tree itself
seems better to me. otoh, clang is not yet up to the task of becoming
real alternative to gcc. I'd wait to summer when they are going to release
their first version
More information about the Kernel