Skip to content

Commit 4641018

Browse files
committed
chore(git): add android cargo build
1 parent 01e0046 commit 4641018

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ ENV CXXFLAGS_aarch64_linux_android="-D__ANDROID_API__=${ANDROID_API_LEVEL} -D_DE
6363
# Verify the Rust standard library is available for the target
6464
RUN find /root/.rustup -name "libcore-*.rlib" | head -5
6565
RUN find /root/.rustup -name "*aarch64*" | head -10
66+
RUN chmod -R 755 ${ANDROID_SDK_ROOT} ${ANDROID_NDK_HOME} /root/.cargo /root/.rustup
6667

6768
RUN git clone https://github.com/tursodatabase/libsql.git /libsql
6869
RUN cd /libsql && git checkout libsql-server-v0.24.32
@@ -73,6 +74,8 @@ WORKDIR /libsql
7374
RUN rustc --target aarch64-linux-android --print sysroot
7475
RUN rustc --target aarch64-linux-android --print target-libdir
7576

77+
RUN find /root/.rustup/toolchains/1.81.0-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-linux-android/lib -name "libcore-*.rlib"
78+
7679
# Build with explicit sysroot and linker flags
7780
RUN cargo build --release --target aarch64-linux-android
7881

0 commit comments

Comments
 (0)