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 @@ -1545,6 +1545,10 @@ impl Build {
15451545 }
15461546 }
15471547
1548+ if target. contains ( "-kmc-solid-" ) {
1549+ cmd. args . push ( "-finput-charset=utf-8" . into ( ) ) ;
1550+ }
1551+
15481552 if self . static_flag . is_none ( ) {
15491553 let features = self
15501554 . getenv ( "CARGO_CFG_TARGET_FEATURE" )
@@ -1556,7 +1560,7 @@ impl Build {
15561560
15571561 // armv7 targets get to use armv7 instructions
15581562 if ( target. starts_with ( "armv7" ) || target. starts_with ( "thumbv7" ) )
1559- && target. contains ( "-linux-" )
1563+ && ( target. contains ( "-linux-" ) || target . contains ( "-kmc-solid-" ) )
15601564 {
15611565 cmd. args . push ( "-march=armv7-a" . into ( ) ) ;
15621566 }
@@ -2082,6 +2086,10 @@ impl Build {
20822086 } else {
20832087 "wr-cc" . to_string ( )
20842088 }
2089+ } else if target. starts_with ( "armv7a-kmc-solid-" ) {
2090+ format ! ( "arm-kmc-eabi-{}" , gnu)
2091+ } else if target. starts_with ( "aarch64-kmc-solid-" ) {
2092+ format ! ( "aarch64-kmc-elf-{}" , gnu)
20852093 } else if self . get_host ( ) ? != target {
20862094 let prefix = self . prefix_for_target ( & target) ;
20872095 match prefix {
You can’t perform that action at this time.
0 commit comments