]> git.lizzy.rs Git - rust.git/blob - src/ci/docker/disabled/dist-x86_64-android/Dockerfile
Refactor away `inferred_obligations` from the trait selector
[rust.git] / src / ci / docker / disabled / dist-x86_64-android / Dockerfile
1 FROM ubuntu:16.04
2
3 COPY scripts/android-base-apt-get.sh /scripts/
4 RUN sh /scripts/android-base-apt-get.sh
5
6 COPY scripts/android-ndk.sh /scripts/
7 RUN . /scripts/android-ndk.sh && \
8     download_and_make_toolchain android-ndk-r15c-linux-x86_64.zip x86_64 21
9
10 ENV PATH=$PATH:/android/ndk/x86_64-21/bin
11
12 ENV DEP_Z_ROOT=/android/ndk/x86_64-21/sysroot/usr/
13
14 ENV HOSTS=x86_64-linux-android
15
16 ENV RUST_CONFIGURE_ARGS \
17       --host=$HOSTS \
18       --target=$HOSTS \
19       --x86_64-linux-android-ndk=/android/ndk/x86_64-21 \
20       --disable-rpath \
21       --enable-extended \
22       --enable-cargo-openssl-static
23
24 ENV SCRIPT python2.7 ../x.py dist --target $HOSTS --host $HOSTS
25
26 COPY scripts/sccache.sh /scripts/
27 RUN sh /scripts/sccache.sh