Skip to content

Commit

Permalink
rustup-init.sh: support probing MIPS architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
xen0n authored and nodakai committed Apr 23, 2017
1 parent cc02ac0 commit 418acb3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions rustup-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,26 @@ get_architecture() {
local _cputype=x86_64
;;

mips)
local _cputype="$(get_endianness $_cputype "" 'el')"
;;

mips64)
local _bitness="$(get_bitness)"
if [ $_bitness = "32" ]; then
if [ $_ostype = "unknown-linux-gnu" ]; then
# 64-bit kernel with 32-bit userland
# endianness suffix is appended later
local _cputype=mips
fi
else
# only n64 ABI is supported for now
local _ostype="${_ostype}abi64"
fi

local _cputype="$(get_endianness $_cputype "" 'el')"
;;

ppc)
local _cputype=powerpc
;;
Expand Down

0 comments on commit 418acb3

Please sign in to comment.