@@ -18,7 +18,7 @@ use driver::session::Session;
18
18
use back;
19
19
use back:: link;
20
20
use back:: target_strs;
21
- use back:: { arm, x86, x86_64, mips} ;
21
+ use back:: { arm, x86, x86_64, mips, mipsel } ;
22
22
use middle:: lint;
23
23
24
24
use syntax:: abi;
@@ -373,7 +373,8 @@ pub fn default_configuration(sess: &Session) -> ast::CrateConfig {
373
373
abi:: X86 => ( "little" , "x86" , "32" ) ,
374
374
abi:: X86_64 => ( "little" , "x86_64" , "64" ) ,
375
375
abi:: Arm => ( "little" , "arm" , "32" ) ,
376
- abi:: Mips => ( "big" , "mips" , "32" )
376
+ abi:: Mips => ( "big" , "mips" , "32" ) ,
377
+ abi:: Mipsel => ( "little" , "mipsel" , "32" )
377
378
} ;
378
379
379
380
let fam = match sess. targ_cfg . os {
@@ -452,6 +453,7 @@ static architecture_abis : &'static [(&'static str, abi::Architecture)] = &'stat
452
453
( "xscale" , abi:: Arm ) ,
453
454
( "thumb" , abi:: Arm ) ,
454
455
456
+ ( "mipsel" , abi:: Mipsel ) ,
455
457
( "mips" , abi:: Mips ) ] ;
456
458
457
459
pub fn build_target_config ( sopts : & Options ) -> Config {
@@ -470,14 +472,16 @@ pub fn build_target_config(sopts: &Options) -> Config {
470
472
abi:: X86 => ( ast:: TyI32 , ast:: TyU32 ) ,
471
473
abi:: X86_64 => ( ast:: TyI64 , ast:: TyU64 ) ,
472
474
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 )
474
477
} ;
475
478
let target_triple = sopts. target_triple . clone ( ) ;
476
479
let target_strs = match arch {
477
480
abi:: X86 => x86:: get_target_strs ( target_triple, os) ,
478
481
abi:: X86_64 => x86_64:: get_target_strs ( target_triple, os) ,
479
482
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)
481
485
} ;
482
486
Config {
483
487
os : os,
0 commit comments