diff options
| author | Miguel Ojeda <ojeda@kernel.org> | 2026-05-30 13:49:25 +0200 |
|---|---|---|
| committer | Miguel Ojeda <ojeda@kernel.org> | 2026-05-30 15:38:16 +0200 |
| commit | 905b06d32a52afe32fcf5f30cf298c9ea6359f11 (patch) | |
| tree | c711413624aba91cd8844e68356aa1154f9c5930 /scripts/objdump-func | |
| parent | ac35b5580ace12e5d0a0b5e61e36d2c4e1ffa29c (diff) | |
| download | lwn-905b06d32a52afe32fcf5f30cf298c9ea6359f11.tar.gz lwn-905b06d32a52afe32fcf5f30cf298c9ea6359f11.zip | |
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,
which is an alias. Otherwise, one gets:
error: error loading target specification: rustc-abi: invalid rustc abi: 'x86-softfloat'. allowed values: 'x86-sse2', 'softfloat' at line 3 column 32
|
= help: run `rustc --print target-list` for a list of built-in targets
Thus conditionally use one or the other depending on the version.
The alias has existed since Rust 1.95.0 (released 2026-04-16) [2], but
use the newer version instead to avoid changing how the build works for
existing compilers, at least until more testing takes place.
Cc: Ralf Jung <post@ralfj.de>
Cc: stable@vger.kernel.org # Needed in 6.12.y and later (Rust is pinned in older LTSs).
Link: https://github.com/rust-lang/rust/pull/157151 [1]
Link: https://github.com/rust-lang/rust/pull/151154 [2]
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://patch.msgid.link/20260530114925.260754-1-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'scripts/objdump-func')
0 files changed, 0 insertions, 0 deletions
