@@ -18,7 +18,7 @@ use driver::session::Session;
1818use back;
1919use back:: link;
2020use back:: target_strs;
21- use back:: { arm, x86, x86_64, mips} ;
21+ use back:: { arm, x86, x86_64, mips, mipsel } ;
2222use middle:: lint;
2323
2424use syntax:: abi;
@@ -373,7 +373,8 @@ pub fn default_configuration(sess: &Session) -> ast::CrateConfig {
373373 abi:: X86 => ( "little" , "x86" , "32" ) ,
374374 abi:: X86_64 => ( "little" , "x86_64" , "64" ) ,
375375 abi:: Arm => ( "little" , "arm" , "32" ) ,
376- abi:: Mips => ( "big" , "mips" , "32" )
376+ abi:: Mips => ( "big" , "mips" , "32" ) ,
377+ abi:: Mipsel => ( "little" , "mipsel" , "32" )
377378 } ;
378379
379380 let fam = match sess. targ_cfg . os {
@@ -452,6 +453,7 @@ static architecture_abis : &'static [(&'static str, abi::Architecture)] = &'stat
452453 ( "xscale" , abi:: Arm ) ,
453454 ( "thumb" , abi:: Arm ) ,
454455
456+ ( "mipsel" , abi:: Mipsel ) ,
455457 ( "mips" , abi:: Mips ) ] ;
456458
457459pub fn build_target_config ( sopts : & Options ) -> Config {
@@ -470,14 +472,16 @@ pub fn build_target_config(sopts: &Options) -> Config {
470472 abi:: X86 => ( ast:: TyI32 , ast:: TyU32 ) ,
471473 abi:: X86_64 => ( ast:: TyI64 , ast:: TyU64 ) ,
472474 abi:: Arm => ( ast:: TyI32 , ast:: TyU32 ) ,
473- abi:: Mips => ( ast:: TyI32 , ast:: TyU32 )
475+ abi:: Mips => ( ast:: TyI32 , ast:: TyU32 ) ,
476+ abi:: Mipsel => ( ast:: TyI32 , ast:: TyU32 )
474477 } ;
475478 let target_triple = sopts. target_triple . clone ( ) ;
476479 let target_strs = match arch {
477480 abi:: X86 => x86:: get_target_strs ( target_triple, os) ,
478481 abi:: X86_64 => x86_64:: get_target_strs ( target_triple, os) ,
479482 abi:: Arm => arm:: get_target_strs ( target_triple, os) ,
480- abi:: Mips => mips:: get_target_strs ( target_triple, os)
483+ abi:: Mips => mips:: get_target_strs ( target_triple, os) ,
484+ abi:: Mipsel => mipsel:: get_target_strs ( target_triple, os)
481485 } ;
482486 Config {
483487 os : os,
0 commit comments