Enable x87 target feature on x86_64
This commit is contained in:
parent
c8f0f36d66
commit
cf5521b5a3
1 changed files with 2 additions and 2 deletions
|
@ -183,8 +183,8 @@ impl CodegenBackend for CraneliftCodegenBackend {
|
|||
) -> Vec<rustc_span::Symbol> {
|
||||
// FIXME return the actually used target features. this is necessary for #[cfg(target_feature)]
|
||||
if sess.target.arch == "x86_64" && sess.target.os != "none" {
|
||||
// x86_64 mandates SSE2 support
|
||||
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")]
|
||||
} else if sess.target.arch == "aarch64" {
|
||||
match &*sess.target.os {
|
||||
"none" => vec![],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue