Skip to content

Commit f5499a0

Browse files
authored
Auto merge of #35814 - alexcrichton:armv7-no-neon, r=brson
rustc: Don't enable NEON by default on armv7 Linux One of the primary platforms for the `armv7-unknown-linux-gnueabihf` target, Linux distributions, do not enable NEON extensions by default. This PR disables that feature by defualt but enables the `d16` feature which enables VFP3D16 that distributions do enable. Closes #35590
2 parents 0ccd5c8 + 1cf510d commit f5499a0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/librustc_back/target/armv7_unknown_linux_gnueabihf.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ pub fn target() -> TargetResult {
2323
target_vendor: "unknown".to_string(),
2424

2525
options: TargetOptions {
26-
features: "+v7,+vfp3,+neon".to_string(),
27-
cpu: "cortex-a8".to_string(),
26+
// Info about features at https://wiki.debian.org/ArmHardFloatPort
27+
features: "+v7,+vfp3,+d16,+thumb2".to_string(),
28+
cpu: "generic".to_string(),
2829
max_atomic_width: 64,
2930
.. base
3031
}

0 commit comments

Comments
 (0)