File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1614,6 +1614,10 @@ impl Build {
1614
1614
}
1615
1615
}
1616
1616
1617
+ if target. contains ( "-kmc-solid-" ) {
1618
+ cmd. args . push ( "-finput-charset=utf-8" . into ( ) ) ;
1619
+ }
1620
+
1617
1621
if self . static_flag . is_none ( ) {
1618
1622
let features = self
1619
1623
. getenv ( "CARGO_CFG_TARGET_FEATURE" )
@@ -1625,7 +1629,7 @@ impl Build {
1625
1629
1626
1630
// armv7 targets get to use armv7 instructions
1627
1631
if ( target. starts_with ( "armv7" ) || target. starts_with ( "thumbv7" ) )
1628
- && target. contains ( "-linux-" )
1632
+ && ( target. contains ( "-linux-" ) || target . contains ( "-kmc-solid-" ) )
1629
1633
{
1630
1634
cmd. args . push ( "-march=armv7-a" . into ( ) ) ;
1631
1635
}
@@ -2166,6 +2170,10 @@ impl Build {
2166
2170
} else {
2167
2171
"wr-cc" . to_string ( )
2168
2172
}
2173
+ } else if target. starts_with ( "armv7a-kmc-solid-" ) {
2174
+ format ! ( "arm-kmc-eabi-{}" , gnu)
2175
+ } else if target. starts_with ( "aarch64-kmc-solid-" ) {
2176
+ format ! ( "aarch64-kmc-elf-{}" , gnu)
2169
2177
} else if self . get_host ( ) ? != target {
2170
2178
let prefix = self . prefix_for_target ( & target) ;
2171
2179
match prefix {
You can’t perform that action at this time.
0 commit comments