Skip to content

Commit 3dbfa8b

Browse files
committed
Rollup merge of rust-lang#48466 - sanxiyn:no-neon, r=alexcrichton
Fixes rust-lang#47311. r? @nrc
2 parents fbe8bf4 + 8e4ad29 commit 3dbfa8b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/librustc_back/target/armv7_unknown_linux_musleabihf.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,7 @@ use LinkerFlavor;
1212
use target::{Target, TargetOptions, TargetResult};
1313

1414
pub fn target() -> TargetResult {
15-
let mut base = super::linux_musl_base::opts();
16-
17-
// Most of these settings are copied from the armv7_unknown_linux_gnueabihf
18-
// target.
19-
base.features = "+v7,+vfp3,+neon".to_string();
20-
base.cpu = "cortex-a8".to_string();
21-
base.max_atomic_width = Some(64);
15+
let base = super::linux_musl_base::opts();
2216
Ok(Target {
2317
// It's important we use "gnueabihf" and not "musleabihf" here. LLVM
2418
// uses it to determine the calling convention and float ABI, and LLVM
@@ -33,9 +27,15 @@ pub fn target() -> TargetResult {
3327
target_env: "musl".to_string(),
3428
target_vendor: "unknown".to_string(),
3529
linker_flavor: LinkerFlavor::Gcc,
30+
31+
// Most of these settings are copied from the armv7_unknown_linux_gnueabihf
32+
// target.
3633
options: TargetOptions {
34+
features: "+v7,+vfp3,+d16,+thumb2,-neon".to_string(),
35+
cpu: "generic".to_string(),
36+
max_atomic_width: Some(64),
3737
abi_blacklist: super::arm_base::abi_blacklist(),
3838
.. base
39-
},
39+
}
4040
})
4141
}

0 commit comments

Comments
 (0)