Skip to content

Commit 40bc558

Browse files
committed
rust: x86: support Rust >= 1.98.0 target spec
Starting with Rust 1.98.0 (expected 2026-08-20), the target spec will not support `x86-softfloat` anymore [1]. Instead, `softfloat` should be used. Thus conditionally use one or the other depending on the version. The alias has been there since Rust 1.95.0 (released 2026-04-16). Cc: Ralf Jung <post@ralfj.de> Cc: Alice Ryhl <aliceryhl@google.com> Link: rust-lang/rust#157151 [1] Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 254f496 commit 40bc558

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/generate_rust_target.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,9 @@ fn main() {
196196
}
197197
} else if cfg.has("X86_64") {
198198
ts.push("arch", "x86_64");
199-
if cfg.rustc_version_atleast(1, 86, 0) {
199+
if cfg.rustc_version_atleast(1, 98, 0) {
200+
ts.push("rustc-abi", "softfloat");
201+
} else if cfg.rustc_version_atleast(1, 86, 0) {
200202
ts.push("rustc-abi", "x86-softfloat");
201203
}
202204
ts.push(

0 commit comments

Comments
 (0)