3 ms·
does any distro uses clang? I thought all linux kernels were compiled using gcc.
by pezgrande 8mo ago
does any distro uses clang? I thought all linux kernels were compiled using gcc.
- zmodem 8mo agoNot a Linux distro, but FreeBSD uses Clang. And Android uses Clang for its Linux kernel. -fbounds-safety is not yet available in upstream Clang though: > NOTE: This is a design document and the feature is not available for users yet.
- honktime 8mo agoChimera does, it also has a FreeBSD userland AFAIU. https://chimera-linux.org/ https://chimera-linux.org/
- pezgrande 8mo agohm this one is interesting. Thanks for sharing!
- yjftsjthsd-h 8mo agohttps://www.kernel.org/doc/html/latest/kbuild/llvm.html https://www.kernel.org/doc/html/latest/kbuild/llvm.html > The Linux kernel has always traditionally been compiled with GNU toolchains such as GCC and binutils. Ongoing work has allowed for Clang and LLVM utilities to be used as viable substitutes. Distributions such as Android, ChromeOS, OpenMandriva, and Chimera Linux use Clang built kernels. Google’s and Meta’s datacenter fleets also run kernels built with Clang.