Hacker News new | ask | show | jobs
by rjsw 1868 days ago
NetBSD can optionally be built with LLVM/Clang. It can be cross-compiled using either toolchain.
1 comments

Well, yes -- it's nice and portable like that. I think at some point they got it building with PCC and TCC too?

My point is unlike the other BSDs they haven't made a point of deprecating/removing GCC from the source tree, or even using LLVM by default where they can. For third parties worried about GPLv3, you can easily delete all GPLv3 code with a rm -rf src/external/gpl3 :)

LLVM doesn't support all the CPU architectures that GCC does, ones missing include 68k, VAX and SH3.
LLVM recently got a m68k backend. It's still marked experimental, so distros likely aren't enabling it yet. But it's seeing active developments from hobbyists. Main author of the m68k just had a book on LLVM published.