mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-21 22:34:05 +00:00
Detect mips CPUs in ./configure
This mirrors existing logic already in src/bootstrap/bootstrap.py
This commit is contained in:
parent
ac5046cf67
commit
5740f94fed
12
configure
vendored
12
configure
vendored
@ -541,6 +541,18 @@ case $CFG_CPUTYPE in
|
|||||||
CFG_CPUTYPE=x86_64
|
CFG_CPUTYPE=x86_64
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
mips | mips64)
|
||||||
|
if [ "$CFG_CPUTYPE" = "mips64" ]; then
|
||||||
|
CFG_OSTYPE="${CFG_OSTYPE}abi64"
|
||||||
|
fi
|
||||||
|
ENDIAN=$(printf '\1' | od -dAn)
|
||||||
|
if [ "$ENDIAN" -eq 1 ]; then
|
||||||
|
CFG_CPUTYPE="${CFG_CPUTYPE}el"
|
||||||
|
elif [ "$ENDIAN" -ne 256 ]; then
|
||||||
|
err "unknown endianness: $ENDIAN (expecting 1 for little or 256 for big)"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
BePC)
|
BePC)
|
||||||
CFG_CPUTYPE=i686
|
CFG_CPUTYPE=i686
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user