File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -541,6 +541,18 @@ case $CFG_CPUTYPE in
541
541
CFG_CPUTYPE=x86_64
542
542
;;
543
543
544
+ mips | mips64)
545
+ if [ " $CFG_CPUTYPE " = " mips64" ]; then
546
+ CFG_OSTYPE=" ${CFG_OSTYPE} abi64"
547
+ fi
548
+ ENDIAN=$( printf ' \1' | od -dAn)
549
+ if [ " $ENDIAN " -eq 1 ]; then
550
+ CFG_CPUTYPE=" ${CFG_CPUTYPE} el"
551
+ elif [ " $ENDIAN " -ne 256 ]; then
552
+ err " unknown endianness: $ENDIAN (expecting 1 for little or 256 for big)"
553
+ fi
554
+ ;;
555
+
544
556
BePC)
545
557
CFG_CPUTYPE=i686
546
558
;;
Original file line number Diff line number Diff line change @@ -22,6 +22,12 @@ pub fn main() { }
22
22
#[ cfg( target_arch = "aarch64" ) ]
23
23
pub fn main ( ) { }
24
24
25
+ #[ cfg( target_arch = "mips" ) ]
26
+ pub fn main ( ) { }
27
+
28
+ #[ cfg( target_arch = "mips64" ) ]
29
+ pub fn main ( ) { }
30
+
25
31
#[ cfg( target_arch = "powerpc64" ) ]
26
32
pub fn main ( ) { }
27
33
You can’t perform that action at this time.
0 commit comments