mirror of
https://github.com/bensuperpc/dockcross.git
synced 2025-06-20 09:54:28 +02:00
Add rust support to android-x86_64
This commit is contained in:
@ -29,6 +29,12 @@ RUN mkdir -p /build && \
|
||||
find ${CROSS_ROOT} -exec chmod a+r '{}' \; && \
|
||||
find ${CROSS_ROOT} -executable -exec chmod a+x '{}' \;
|
||||
|
||||
# Prepare Rust
|
||||
ENV PATH="/root/.cargo/bin/:$PATH"
|
||||
RUN rustup target add x86_64-linux-android
|
||||
COPY config.toml /root/.cargo/
|
||||
|
||||
# Prepare CMake
|
||||
COPY Toolchain.cmake ${CROSS_ROOT}/
|
||||
ENV CMAKE_TOOLCHAIN_FILE ${CROSS_ROOT}/Toolchain.cmake
|
||||
|
||||
|
5
android-x86_64/config.toml
Normal file
5
android-x86_64/config.toml
Normal file
@ -0,0 +1,5 @@
|
||||
[build]
|
||||
target = "x86_64-linux-android"
|
||||
|
||||
[target.x86_64-linux-android]
|
||||
linker = "/usr/x86_64-linux-android/bin/x86_64-linux-android-clang"
|
Reference in New Issue
Block a user