From 427609a501951253663e2d3208871d44bb7fefdc Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Fri, 1 Sep 2023 13:52:32 +0530 Subject: [PATCH] fix(android): rustup commands --- package/android/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/android/build.sh b/package/android/build.sh index 43baea8..c74e4df 100644 --- a/package/android/build.sh +++ b/package/android/build.sh @@ -17,7 +17,8 @@ export PATH="$PATH:$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/" cp ../package/android/.cargo/config $HOME/.cargo/config -rustup toolchain install aarch64-linux-android +rustup toolchain install stable-x86_64-unknown-linux-gnu +rustup target add aarch64-linux-android mv $ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang $ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-clang mv $ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar $ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-ar