Hacker News new | ask | show | jobs
by fanf2 31 days ago
https://www.kernel.org/doc/html/latest/kbuild/llvm.html
2 comments

That's a good point, the more precise statement is that Linux exclusively uses gnu11 to compile.

Clang happens to implement gnu11, I think it's the only non-GCC compiler to do so.

Which was largely sponsored by Google, as they removed GCC from Android, and needed to have clang compile the Linux kernel.

For a long time only Android Linux kernel downstream supported it.