File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11FROM ubuntu:22.04
22
33# Set environment variables for the Android SDK and NDK, and the API level.
4- ENV ANDROID_API_LEVEL="27 "
4+ ENV ANDROID_API_LEVEL="22 "
55ENV ANDROID_NDK_VERSION=r26d
66ENV ANDROID_SDK_ROOT="/usr/lib/android-sdk"
77ENV ANDROID_HOME="/usr/lib/android-sdk"
@@ -83,6 +83,13 @@ RUN echo "=== SETTING UP CARGO CONFIG ===" && \
8383 echo '' >> /root/.cargo/config.toml && \
8484 cat /root/.cargo/config.toml
8585
86+ # Configure Rust to abort on panic (no libunwind needed)
87+ RUN echo '[profile.dev]' >> /root/.cargo/config.toml && \
88+ echo 'panic = "abort"' >> /root/.cargo/config.toml && \
89+ echo '' >> /root/.cargo/config.toml && \
90+ echo '[profile.release]' >> /root/.cargo/config.toml && \
91+ echo 'panic = "abort"' >> /root/.cargo/config.toml
92+
8693# Test with Cargo
8794RUN echo "=== TESTING WITH CARGO ===" && \
8895 mkdir -p src && \
You can’t perform that action at this time.
0 commit comments