]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: kbuild: support `-Cjump-tables=n` for Rust 1.93.0
authorMiguel Ojeda <ojeda@kernel.org>
Sat, 1 Nov 2025 09:40:11 +0000 (10:40 +0100)
committerMiguel Ojeda <ojeda@kernel.org>
Tue, 4 Nov 2025 18:11:39 +0000 (19:11 +0100)
commit789521b4717fd6bd85164ba5c131f621a79c9736
tree4a771ce3043bb71fcee67ddde7761d7026f82bbb
parentfad472efab0a805dd939f017c5b8669a786a4bcf
rust: kbuild: support `-Cjump-tables=n` for Rust 1.93.0

Rust 1.93.0 (expected 2026-01-22) is stabilizing `-Zno-jump-tables`
[1][2] as `-Cjump-tables=n` [3].

Without this change, one would eventually see:

      RUSTC L rust/core.o
    error: unknown unstable option: `no-jump-tables`

Thus support the upcoming version.

Link: https://github.com/rust-lang/rust/issues/116592
Link: https://github.com/rust-lang/rust/pull/105812
Link: https://github.com/rust-lang/rust/pull/145974
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Trevor Gross <tmgross@umich.edu>
Acked-by: Nicolas Schier <nsc@kernel.org>
Link: https://patch.msgid.link/20251101094011.1024534-1-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
arch/loongarch/Makefile
arch/x86/Makefile