We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8f0f36 commit cf5521bCopy full SHA for cf5521b
src/lib.rs
@@ -183,8 +183,8 @@ impl CodegenBackend for CraneliftCodegenBackend {
183
) -> Vec<rustc_span::Symbol> {
184
// FIXME return the actually used target features. this is necessary for #[cfg(target_feature)]
185
if sess.target.arch == "x86_64" && sess.target.os != "none" {
186
- // x86_64 mandates SSE2 support
187
- vec![sym::fsxr, sym::sse, sym::sse2]
+ // x86_64 mandates SSE2 support and rustc requires the x87 feature to be enabled
+ vec![sym::fsxr, sym::sse, sym::sse2, Symbol::intern("x87")]
188
} else if sess.target.arch == "aarch64" {
189
match &*sess.target.os {
190
"none" => vec![],
0 commit comments