From 831f2aefbce7eb1ff733293375f03e5d6ddcf8a8 Mon Sep 17 00:00:00 2001 From: Amir Bilu Date: Thu, 27 Jun 2024 21:16:21 +0300 Subject: [PATCH] support --- dl_binaries.sh | 3 +++ lua/tabnine/binary.lua | 2 ++ 2 files changed, 5 insertions(+) diff --git a/dl_binaries.sh b/dl_binaries.sh index 5957d0f..9988ec0 100755 --- a/dl_binaries.sh +++ b/dl_binaries.sh @@ -28,6 +28,8 @@ case $(uname -s) in "Linux") if [ "$(uname -m)" = "x86_64" ]; then targets="x86_64-unknown-linux-musl" + elif [ "$(uname -m)" = "aarch64" ]; then + targets="aarch64-unknown-linux-musl" fi ;; esac @@ -36,6 +38,7 @@ if [ -z "$targets" ]; then echo "Target detection failed. Installing all targets" targets='x86_64-apple-darwin x86_64-unknown-linux-musl + aarch64-unknown-linux-musl aarch64-apple-darwin' fi diff --git a/lua/tabnine/binary.lua b/lua/tabnine/binary.lua index 1028e5b..a8ed12d 100644 --- a/lua/tabnine/binary.lua +++ b/lua/tabnine/binary.lua @@ -15,6 +15,8 @@ local function arch_and_platform() if os_uname.sysname == "Linux" and os_uname.machine == "x86_64" then return "x86_64-unknown-linux-musl" + elseif os_uname.sysname == "Linux" and os_uname.machine == "aarch64" then + return "aarch64-unknown-linux-musl" elseif os_uname.sysname == "Darwin" and os_uname.machine == "arm64" then return "aarch64-apple-darwin" elseif os_uname.sysname == "Darwin" then