@@ -12,13 +12,7 @@ use LinkerFlavor;
1212use target:: { Target , TargetOptions , TargetResult } ;
1313
1414pub 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