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
This commit is contained in:
parent
9d6520f97b
commit
1cf510d1de
1 changed files with 3 additions and 2 deletions
|
@ -23,8 +23,9 @@ pub fn target() -> TargetResult {
|
||||||
target_vendor: "unknown".to_string(),
|
target_vendor: "unknown".to_string(),
|
||||||
|
|
||||||
options: TargetOptions {
|
options: TargetOptions {
|
||||||
features: "+v7,+vfp3,+neon".to_string(),
|
// Info about features at https://wiki.debian.org/ArmHardFloatPort
|
||||||
cpu: "cortex-a8".to_string(),
|
features: "+v7,+vfp3,+d16,+thumb2".to_string(),
|
||||||
|
cpu: "generic".to_string(),
|
||||||
max_atomic_width: 64,
|
max_atomic_width: 64,
|
||||||
.. base
|
.. base
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue