From 1cf510d1decf5a1a450c9c60e6dd71f402b4c307 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 18 Aug 2016 17:55:22 -0700 Subject: [PATCH] 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 --- src/librustc_back/target/armv7_unknown_linux_gnueabihf.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/librustc_back/target/armv7_unknown_linux_gnueabihf.rs b/src/librustc_back/target/armv7_unknown_linux_gnueabihf.rs index 52269f0cd4a..7e0306a03e2 100644 --- a/src/librustc_back/target/armv7_unknown_linux_gnueabihf.rs +++ b/src/librustc_back/target/armv7_unknown_linux_gnueabihf.rs @@ -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 }