cranelift: fix target feature name type: "fxsr"

This commit is contained in:
Martin Liska 2025-06-22 16:32:54 +02:00
parent a30f1783fe
commit 75674e2c2a
2 changed files with 2 additions and 2 deletions

View file

@ -184,7 +184,7 @@ impl CodegenBackend for CraneliftCodegenBackend {
// FIXME return the actually used target features. this is necessary for #[cfg(target_feature)]
let target_features = if sess.target.arch == "x86_64" && sess.target.os != "none" {
// x86_64 mandates SSE2 support and rustc requires the x87 feature to be enabled
vec![sym::fsxr, sym::sse, sym::sse2, Symbol::intern("x87")]
vec![sym::fxsr, sym::sse, sym::sse2, Symbol::intern("x87")]
} else if sess.target.arch == "aarch64" {
match &*sess.target.os {
"none" => vec![],

View file

@ -1080,7 +1080,6 @@ symbols! {
fs_create_dir,
fsub_algebraic,
fsub_fast,
fsxr,
full,
fundamental,
fused_iterator,
@ -1088,6 +1087,7 @@ symbols! {
future_drop_poll,
future_output,
future_trait,
fxsr,
gdb_script_file,
ge,
gen_blocks,