[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Package for development of out-of-tree kernel modules written in Rust



On Wed, Feb 26, 2025 at 8:12 PM NoisyCoil <noisycoil@disroot.org> wrote:
>
> the case, then I would also ask Miguel if the .rmeta files can be used
> from another architecture for cross-compiling. I think the .rmeta files
> can only be used with the same rustc that compiled the kernel crates?
> Don't know exactly which checks are performed on the compiler, are they
> only version checks?

A single `rustc` can target all targets, like Clang, and unlike GCC.
However, the `.rmeta`s are tied to a single target and compiler and
`rustc` complains otherwise. It will also check some flags like target
modifiers for compatibility too.

I hope that helps!

Cheers,
Miguel


Reply to: