Skip to content

Commit

Permalink
Auto merge of rust-lang#35814 - alexcrichton:armv7-no-neon, r=brson
Browse files Browse the repository at this point in the history
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 rust-lang#35590
  • Loading branch information
bors committed Aug 25, 2016
2 parents 0ccd5c8 + 1cf510d commit f5499a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/librustc_back/target/armv7_unknown_linux_gnueabihf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ pub fn target() -> TargetResult {
target_vendor: "unknown".to_string(),

options: TargetOptions {
features: "+v7,+vfp3,+neon".to_string(),
cpu: "cortex-a8".to_string(),
// Info about features at https://wiki.debian.org/ArmHardFloatPort
features: "+v7,+vfp3,+d16,+thumb2".to_string(),
cpu: "generic".to_string(),
max_atomic_width: 64,
.. base
}
Expand Down

0 comments on commit f5499a0

Please sign in to comment.