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 @@ -1620,6 +1620,10 @@ impl Build {
16201620 }
16211621 }
16221622
1623+ if target. contains ( "-kmc-solid_" ) {
1624+ cmd. args . push ( "-finput-charset=utf-8" . into ( ) ) ;
1625+ }
1626+
16231627 if self . static_flag . is_none ( ) {
16241628 let features = self
16251629 . getenv ( "CARGO_CFG_TARGET_FEATURE" )
@@ -1631,7 +1635,7 @@ impl Build {
16311635
16321636 // armv7 targets get to use armv7 instructions
16331637 if ( target. starts_with ( "armv7" ) || target. starts_with ( "thumbv7" ) )
1634- && target. contains ( "-linux-" )
1638+ && ( target. contains ( "-linux-" ) || target . contains ( "-kmc-solid_" ) )
16351639 {
16361640 cmd. args . push ( "-march=armv7-a" . into ( ) ) ;
16371641 }
@@ -2187,6 +2191,10 @@ impl Build {
21872191 } else {
21882192 "wr-cc" . to_string ( )
21892193 }
2194+ } else if target. starts_with ( "armv7a-kmc-solid_" ) {
2195+ format ! ( "arm-kmc-eabi-{}" , gnu)
2196+ } else if target. starts_with ( "aarch64-kmc-solid_" ) {
2197+ format ! ( "aarch64-kmc-elf-{}" , gnu)
21902198 } else if self . get_host ( ) ? != target {
21912199 let prefix = self . prefix_for_target ( & target) ;
21922200 match prefix {
You can’t perform that action at this time.
0 commit comments