|
|
Log in / Subscribe / Register

A first look at Rust in the 6.1 kernel

A first look at Rust in the 6.1 kernel

Posted Oct 14, 2022 13:13 UTC (Fri) by mathstuf (subscriber, #69389)
In reply to: A first look at Rust in the 6.1 kernel by geert
Parent article: A first look at Rust in the 6.1 kernel

What happens if I have a config file that specifies "please enable Rust support" on a machine without the prereqs? Is there some notification that I'm not getting the kernel I asked for?


to post comments

A first look at Rust in the 6.1 kernel

Posted Oct 14, 2022 13:22 UTC (Fri) by geert (subscriber, #98403) [Link]

In that case the Rust support will be disabled silently.
This behaves the same as when using a config file that has compiler-dependent support enabled which is not supported by your compiler (e.g. UBSAN_TRAP, see `git grep "\$(" -- "*Kconf*"' for more).

I guess that's fair enough for an experimental feature that is not yet supported on all architectures?

Note that personally, I never run "make oldconfig", but always use my "linux-oldconfig" script, which prints a diff of all changes between the old and the new config file.

A first look at Rust in the 6.1 kernel

Posted Oct 16, 2022 15:47 UTC (Sun) by flussence (guest, #85566) [Link]

Rust is a config-time check so I guess it'd be exactly the same as other toolchain probing: you can see the effect if you do `make LLVM=1 oldconfig`; it pops up a bunch of new clang-specific questions but the old gcc-plugin ones silently vanish without warning, and vice versa.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds