-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustc: Try again to disable NEON on armv7 linux #36933
Conversation
r? @eddyb (rust_highfive has picked a reviewer for you, use r? to override) |
@bors r+ |
📌 Commit 56a7db2 has been approved by |
@@ -13,7 +13,7 @@ use target::{Target, TargetOptions, TargetResult}; | |||
pub fn target() -> TargetResult { | |||
let base = super::linux_base::opts(); | |||
Ok(Target { | |||
llvm_target: "armv7-unknown-linux-gnueabihf".to_string(), | |||
llvm_target: "arm-unknown-linux-gnueabihf".to_string(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if it matters, but you lose the Tag_CPU_arch_profile: Application
attribute this way, but you could add it back with +aclass
.
IMO armv7-unknown-linux-gnueabihf
with -neon,+vfp3,+d16
is all that is needed here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also lose +dsp
.
@@ -13,7 +13,7 @@ use target::{Target, TargetOptions, TargetResult}; | |||
pub fn target() -> TargetResult { | |||
let base = super::linux_base::opts(); | |||
Ok(Target { | |||
llvm_target: "armv7-unknown-linux-gnueabihf".to_string(), | |||
llvm_target: "arm-unknown-linux-gnueabihf".to_string(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also lose +dsp
.
This is a follow-up to rust-lang#35814 which apparently didn't disable it hard enough. It looks like LLVM's default armv7 target enables NEON so we'd otherwise have to pass `-neon`, but we're already enabling armv7 with `+v7` supposedly, so let's try just telling LLVM that the armv7 target is arm and then enable features selectively. Closes rust-lang#36913
56a7db2
to
4625642
Compare
@bors: r=eddyb |
📌 Commit 4625642 has been approved by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fwiw the v7 and thumb2 are redundant when using the armv7 triple.
rustc: Try again to disable NEON on armv7 linux This is a follow-up to #35814 which apparently didn't disable it hard enough. It looks like LLVM's default armv7 target enables NEON so we'd otherwise have to pass `-neon`, but we're already enabling armv7 with `+v7` supposedly, so let's try just telling LLVM that the armv7 target is arm and then enable features selectively. Closes #36913
This is a follow-up to #35814 which apparently didn't disable it hard enough. It
looks like LLVM's default armv7 target enables NEON so we'd otherwise have to
pass
-neon
, but we're already enabling armv7 with+v7
supposedly, so let'stry just telling LLVM that the armv7 target is arm and then enable features
selectively.
Closes #36913