Artifact Content
Not logged in

Artifact e4bf0c259473c849d5efcfbe78b9c4c7a351c4d7:

Unrecognized artifact
FROM ubuntu:16.04

COPY scripts/ /scripts/
RUN sh /scripts/

COPY scripts/ /scripts/
RUN . /scripts/ && \
    download_ndk && \
    make_standalone_toolchain arm 14 && \
    make_standalone_toolchain arm 21 && \

RUN chmod 777 /android/ndk && \
    ln -s /android/ndk/arm-21 /android/ndk/arm

ENV PATH=$PATH:/android/ndk/arm-14/bin

ENV DEP_Z_ROOT=/android/ndk/arm-14/sysroot/usr/

ENV HOSTS=armv7-linux-androideabi

      --armv7-linux-androideabi-ndk=/android/ndk/arm \
      --disable-rpath \
      --enable-extended \

# We support api level 14, but api level 21 is required to build llvm. To
# overcome this problem we use a ndk with api level 21 to build llvm and then
# switch to a ndk with api level 14 to complete the build. When the linker is
# invoked there are missing symbols (like sigsetempty, not available with api
# level 14), the default linker behavior is to generate an error, to allow the
# build to finish we use --warn-unresolved-symbols. Note that the missing
# symbols does not affect std, only the compiler (llvm) and cargo (openssl).
  python2.7 ../ build src/llvm --host $HOSTS --target $HOSTS && \
  (export RUSTFLAGS="\"-C link-arg=-Wl,--warn-unresolved-symbols\""; \
    rm /android/ndk/arm && \
    ln -s /android/ndk/arm-14 /android/ndk/arm && \
    python2.7 ../ dist --host $HOSTS --target $HOSTS)

COPY scripts/ /scripts/
RUN sh /scripts/