@@ -12,13 +12,7 @@ use LinkerFlavor;
12
12
use target:: { Target , TargetOptions , TargetResult } ;
13
13
14
14
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 ( ) ;
22
16
Ok ( Target {
23
17
// It's important we use "gnueabihf" and not "musleabihf" here. LLVM
24
18
// uses it to determine the calling convention and float ABI, and LLVM
@@ -33,9 +27,15 @@ pub fn target() -> TargetResult {
33
27
target_env : "musl" . to_string ( ) ,
34
28
target_vendor : "unknown" . to_string ( ) ,
35
29
linker_flavor : LinkerFlavor :: Gcc ,
30
+
31
+ // Most of these settings are copied from the armv7_unknown_linux_gnueabihf
32
+ // target.
36
33
options : TargetOptions {
34
+ features : "+v7,+vfp3,+d16,+thumb2,-neon" . to_string ( ) ,
35
+ cpu : "generic" . to_string ( ) ,
36
+ max_atomic_width : Some ( 64 ) ,
37
37
abi_blacklist : super :: arm_base:: abi_blacklist ( ) ,
38
38
.. base
39
- } ,
39
+ }
40
40
} )
41
41
}
0 commit comments