Skip to content

Commit 1a41928

Browse files
authored
Auto merge of #36933 - alexcrichton:less-neon-again, r=eddyb
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
2 parents a5dac7a + 4625642 commit 1a41928

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_back/target/armv7_unknown_linux_gnueabihf.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub fn target() -> TargetResult {
2424

2525
options: TargetOptions {
2626
// Info about features at https://wiki.debian.org/ArmHardFloatPort
27-
features: "+v7,+vfp3,+d16,+thumb2".to_string(),
27+
features: "+v7,+vfp3,+d16,+thumb2,-neon".to_string(),
2828
cpu: "generic".to_string(),
2929
max_atomic_width: Some(64),
3030
.. base

0 commit comments

Comments
 (0)