mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
Support armhf abi on 64-bit ARM cpus
They report their `uname -m` as armv8l rather than aarch64. Patch originally by Matthias Klose <doko@debian.org>
This commit is contained in:
parent
f573db4f80
commit
0a55c8e659
2
configure
vendored
2
configure
vendored
@ -512,7 +512,7 @@ case $CFG_CPUTYPE in
|
|||||||
CFG_OSTYPE="${CFG_OSTYPE}eabihf"
|
CFG_OSTYPE="${CFG_OSTYPE}eabihf"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
armv7l)
|
armv7l | armv8l)
|
||||||
CFG_CPUTYPE=armv7
|
CFG_CPUTYPE=armv7
|
||||||
CFG_OSTYPE="${CFG_OSTYPE}eabihf"
|
CFG_OSTYPE="${CFG_OSTYPE}eabihf"
|
||||||
;;
|
;;
|
||||||
|
@ -465,7 +465,7 @@ class RustBuild(object):
|
|||||||
cputype = 'i686'
|
cputype = 'i686'
|
||||||
elif cputype in {'xscale', 'arm'}:
|
elif cputype in {'xscale', 'arm'}:
|
||||||
cputype = 'arm'
|
cputype = 'arm'
|
||||||
elif cputype == 'armv7l':
|
elif cputype in {'armv7l', 'armv8l'}:
|
||||||
cputype = 'arm'
|
cputype = 'arm'
|
||||||
ostype += 'eabihf'
|
ostype += 'eabihf'
|
||||||
elif cputype == 'aarch64':
|
elif cputype == 'aarch64':
|
||||||
|
Loading…
Reference in New Issue
Block a user