On 1/5/25 11:40 AM, Gary Guo wrote: > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > index f3d723705879..8a8834128f13 100644 > --- a/lib/Kconfig.debug > +++ b/lib/Kconfig.debug > @@ -3253,6 +3253,20 @@ config RUST_KERNEL_DOCTESTS > > If unsure, say N. > > +config RUST_INLINE_HELPERS > + bool "Inline C helpers into Rust crates" > + depends on RUST && RUSTC_CLANG_LLVM_COMPATIBLE > + help > + Links C helpers into with Rust crates through LLVM IR. cannot parse "into with". > + > + If this option is enabled, instead of generating object files directly, > + rustc is asked to produce LLVM IR, which is then linked together with > + the LLVM IR of C helpers, before object file is generated. > + > + This requires a matching LLVM version for Clang and rustc. > + > + If unsure, say N. > + > endmenu # "Rust" -- ~Randy