From 76f6f08ce0fb5f0a38c149bb852d95a329d334a1 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Fri, 1 Sep 2023 14:00:15 +0530 Subject: [PATCH] feat: include cargo config for android --- package/android/.cargo/config | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 package/android/.cargo/config diff --git a/package/android/.cargo/config b/package/android/.cargo/config new file mode 100644 index 0000000..1ab0366 --- /dev/null +++ b/package/android/.cargo/config @@ -0,0 +1,4 @@ +[target.aarch64-linux-android] +ar = "$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-ar" +rustflags = ["-C", "linker=aarch64-linux-android-clang", "-C", "link-args=-rdynamic", "-C", "default-linker-libraries"] +linker = "$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-clang"