Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
lupire
· 4y ago · 0 comments
Can clang compile vanilla kernel without Google's forks?
Comments
[–]
elevader
4y ago
AFAIK it can. They actually spent quite a considerable amount of effort implementing all of the gcc extensions to do so. There is even documentation for that:
https://www.kernel.org/doc/html/latest/kbuild/llvm.html
[–]
electroly
4y ago
Apparently OpenMandriva also uses a clang-built kernel, presumably not a Google fork. I have no personal knowledge about OpenMandriva though.
[–]
karlding
4y ago
Do you consider the ClangBuiltLinux project [0] a Google fork?
[0]
https://clangbuiltlinux.github.io/
[–]
gsnedders
4y ago
Clang 9.0+ & Linux 5.3+ work for x86_64; I believe it's been possible to compile arm64 for longer.