NetBSD can optionally be built with LLVM/Clang. It can be cross-compiled using either toolchain.
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.
Re:Illumos to drop SPARC Support
by ndesaulniers on Friday May 07, 2021 @10:22PM
(#27083121)
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.
(side tangent FWIW, NetBSD has no qualms with using GPLv3 GCC, only Free/Open do)
(Edit for another historical tangent: Sun helped create System V release 4, which specifically combined element of older SysV with BSD. Additionally, Solaris/"SunOS 5"'s predecessor SunOS 4 was a straight-up BSD. So Solaris is a pretty BSD-y UNIX, in a way...)