File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1591,6 +1591,14 @@ impl Build {
1591
1591
cmd. args . push ( "-mfloat-abi=soft" . into ( ) ) ;
1592
1592
}
1593
1593
}
1594
+ if target. starts_with ( "armv7a" ) {
1595
+ cmd. args . push ( "-march=armv7-a" . into ( ) ) ;
1596
+
1597
+ if target. ends_with ( "eabihf" ) {
1598
+ // lowest common denominator FPU
1599
+ cmd. args . push ( "-mfpu=vfpv3-d16" . into ( ) ) ;
1600
+ }
1601
+ }
1594
1602
if target. starts_with ( "riscv32" ) || target. starts_with ( "riscv64" ) {
1595
1603
// get the 32i/32imac/32imc/64gc/64imac/... part
1596
1604
let mut parts = target. split ( '-' ) ;
@@ -2044,6 +2052,8 @@ impl Build {
2044
2052
"sparc64-unknown-linux-gnu" => Some ( "sparc64-linux-gnu" ) ,
2045
2053
"sparc64-unknown-netbsd" => Some ( "sparc64--netbsd" ) ,
2046
2054
"sparcv9-sun-solaris" => Some ( "sparcv9-sun-solaris" ) ,
2055
+ "armv7a-none-eabi" => Some ( "arm-none-eabi" ) ,
2056
+ "armv7a-none-eabihf" => Some ( "arm-none-eabi" ) ,
2047
2057
"armebv7r-none-eabi" => Some ( "arm-none-eabi" ) ,
2048
2058
"armebv7r-none-eabihf" => Some ( "arm-none-eabi" ) ,
2049
2059
"armv7r-none-eabi" => Some ( "arm-none-eabi" ) ,
You can’t perform that action at this time.
0 commit comments