From 757c61e2b640eb8b5e26d475d0078c248b4a563f Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jeremy@system76.com> Date: Tue, 27 Nov 2018 09:55:43 -0700 Subject: [PATCH] Add support for aarch64 --- .cargo/config | 4 ++++ config.sh | 9 ++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.cargo/config b/.cargo/config index 7c62c97b4..69c4db47d 100644 --- a/.cargo/config +++ b/.cargo/config @@ -1,3 +1,7 @@ +[target.aarch64-unknown-redox] +linker = "aarch64-unknown-redox-gcc" +rustflags = [] + [target.x86_64-unknown-redox] linker = "x86_64-unknown-redox-gcc" rustflags = [] diff --git a/config.sh b/config.sh index da7b8902e..b08a2e594 100755 --- a/config.sh +++ b/config.sh @@ -2,9 +2,12 @@ set -e # Configuration -ARCH=x86_64 -export TARGET=$ARCH-unknown-redox -HOST=$TARGET +if [ -z "${TARGET}" ] +then + export TARGET=x86_64-unknown-redox +fi +ARCH="${TARGET%%-*}" +HOST="$TARGET" # Automatic variables ROOT="$(cd `dirname "$0"` && pwd)" -- GitLab