3 ms·
I am assuming that it would work with clang-compiled[1] kernels only at first. 1: https://www.kernel.org/doc/html/latest/kbuild/llvm.html https://www.kernel.or
by maccam94 6y ago
I am assuming that it would work with clang-compiled[1] kernels only at first.
1: https://www.kernel.org/doc/html/latest/kbuild/llvm.html https://www.kernel.org/doc/html/latest/kbuild/llvm.html
- est31 6y agoWhy would it require clang for the C components? The Rust compiler creates native libraries which can be linked to compilation units created by both clang and gcc, unless there's something special going on in the kernel that I'm not aware of.
- cesarb 6y agoNot really. Unless you want LTO, the object files generated by GCC and LLVM are compatible, and can mixed without issues.