A first look at Rust in the 6.1 kernel
A first look at Rust in the 6.1 kernel
Posted Oct 17, 2022 8:42 UTC (Mon) by rsidd (guest, #2582)In reply to: A first look at Rust in the 6.1 kernel by ceplm
Parent article: A first look at Rust in the 6.1 kernel
The kernel has been buildable with LLVM clang for quite some time. Android, among others, builds it with clang. From the rust docs linked above, LLVM is recommended for building kernels with rust support: "Using GCC also works for some configurations, but it is very experimental at the moment."
But in any case, the question is of linking code compiled with gcc with objects compiled with clang or something else. In general, this is possible. The kernel may have special difficulties.
