File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1614,6 +1614,10 @@ impl Build {
16141614 }
16151615 }
16161616
1617+ if target. contains ( "-kmc-solid-" ) {
1618+ cmd. args . push ( "-finput-charset=utf-8" . into ( ) ) ;
1619+ }
1620+
16171621 if self . static_flag . is_none ( ) {
16181622 let features = self
16191623 . getenv ( "CARGO_CFG_TARGET_FEATURE" )
@@ -1625,7 +1629,7 @@ impl Build {
16251629
16261630 // armv7 targets get to use armv7 instructions
16271631 if ( target. starts_with ( "armv7" ) || target. starts_with ( "thumbv7" ) )
1628- && target. contains ( "-linux-" )
1632+ && ( target. contains ( "-linux-" ) || target . contains ( "-kmc-solid-" ) )
16291633 {
16301634 cmd. args . push ( "-march=armv7-a" . into ( ) ) ;
16311635 }
@@ -2166,6 +2170,10 @@ impl Build {
21662170 } else {
21672171 "wr-cc" . to_string ( )
21682172 }
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)
21692177 } else if self . get_host ( ) ? != target {
21702178 let prefix = self . prefix_for_target ( & target) ;
21712179 match prefix {
You can’t perform that action at this time.
0 commit comments