]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rust: support Rust >= 1.91.0 target spec
authorMiguel Ojeda <ojeda@kernel.org>
Fri, 29 Aug 2025 19:55:25 +0000 (21:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Sep 2025 16:58:22 +0000 (18:58 +0200)
commit17cab7b45f4db7fcc59420407e49ed66494a556c
treef81627f9784ec3e8a677fa62869c9f31efbecc74
parent585a593ad5e8bc5091689ac67fe785139e2ba4a9
rust: support Rust >= 1.91.0 target spec

commit 8851e27d2cb947ea8bbbe8e812068f7bf5cbd00b upstream.

Starting with Rust 1.91.0 (expected 2025-10-30), the target spec format
has changed the type of the `target-pointer-width` key from string
to integer [1].

Thus conditionally use one or the other depending on the version.

Cc: Waffle Maybe <waffle.lapkin@gmail.com>
Link: https://github.com/rust-lang/rust/pull/144443
Link: https://lore.kernel.org/r/20250829195525.721664-1-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/generate_rust_target.rs