| ▲ | pezgrande 7 hours ago | |
does any distro uses clang? I thought all linux kernels were compiled using gcc. | ||
| ▲ | yjftsjthsd-h 3 hours ago | parent | next [-] | |
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. | ||
| ▲ | zmodem 6 hours ago | parent | prev | next [-] | |
Not 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 5 hours ago | parent | prev [-] | |
Chimera does, it also has a FreeBSD userland AFAIU. | ||