File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -2357,12 +2357,13 @@ impl Build {
2357
2357
cmd. args . push ( "-Wl,-melf_i386" . into ( ) ) ;
2358
2358
}
2359
2359
2360
+ if ( target. starts_with ( "arm" ) || target. starts_with ( "thumb" ) )
2361
+ && target. ends_with ( "-none-eabihf" )
2362
+ {
2363
+ cmd. args . push ( "-mfloat-abi=hard" . into ( ) )
2364
+ }
2360
2365
if target. starts_with ( "thumb" ) {
2361
2366
cmd. args . push ( "-mthumb" . into ( ) ) ;
2362
-
2363
- if target. ends_with ( "eabihf" ) {
2364
- cmd. args . push ( "-mfloat-abi=hard" . into ( ) )
2365
- }
2366
2367
}
2367
2368
if target. starts_with ( "thumbv6m" ) {
2368
2369
cmd. args . push ( "-march=armv6s-m" . into ( ) ) ;
@@ -2401,15 +2402,9 @@ impl Build {
2401
2402
cmd. args . push ( "-march=armv7-r" . into ( ) ) ;
2402
2403
2403
2404
if target. ends_with ( "eabihf" ) {
2404
- // Calling convention
2405
- cmd. args . push ( "-mfloat-abi=hard" . into ( ) ) ;
2406
-
2407
2405
// lowest common denominator FPU
2408
2406
// (see Cortex-R4 technical reference manual)
2409
2407
cmd. args . push ( "-mfpu=vfpv3-d16" . into ( ) )
2410
- } else {
2411
- // Calling convention
2412
- cmd. args . push ( "-mfloat-abi=soft" . into ( ) ) ;
2413
2408
}
2414
2409
}
2415
2410
if target. starts_with ( "armv7a" ) {
You can’t perform that action at this time.
0 commit comments