]> git.lizzy.rs Git - rust.git/commitdiff
Support armhf abi on 64-bit ARM cpus
authorXimin Luo <infinity0@pwned.gg>
Mon, 6 Mar 2017 20:42:55 +0000 (21:42 +0100)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 10 Mar 2017 16:13:21 +0000 (08:13 -0800)
They report their `uname -m` as armv8l rather than aarch64.

Patch originally by Matthias Klose <doko@debian.org>

configure
src/bootstrap/bootstrap.py

index be8628de62832f0b01b8ca60b0c8a97696850c9a..d8861dacafac1091c3deb54ab211f54bc3d4e058 100755 (executable)
--- a/configure
+++ b/configure
@@ -512,7 +512,7 @@ case $CFG_CPUTYPE in
         CFG_OSTYPE="${CFG_OSTYPE}eabihf"
         ;;
 
-    armv7l)
+    armv7l | armv8l)
         CFG_CPUTYPE=armv7
         CFG_OSTYPE="${CFG_OSTYPE}eabihf"
         ;;
index 7dd53f41a214adb838a281bdef446e56590931be..4f41d337592b302ffe629ed192e0126d2fb3b383 100644 (file)
@@ -465,7 +465,7 @@ class RustBuild(object):
             cputype = 'i686'
         elif cputype in {'xscale', 'arm'}:
             cputype = 'arm'
-        elif cputype == 'armv7l':
+        elif cputype in {'armv7l', 'armv8l'}:
             cputype = 'arm'
             ostype += 'eabihf'
         elif cputype == 'aarch64':