Auto merge of #823 - malbarbo:sparc64-test, r=alexcrichton

Add sparc64-unknown-linux-gnu to CI (with disabled tests)

Tests are disabled because qemu segfaults, see https://github.com/rust-lang/libc/issues/822

The builder is still useful to catch some errors.
This commit is contained in:
bors 2017-10-28 03:34:15 +00:00
commit 25fb72e359
2 changed files with 15 additions and 0 deletions

View File

@ -78,6 +78,7 @@ matrix:
- env: TARGET=mips64el-unknown-linux-gnuabi64
- env: TARGET=mips-unknown-linux-gnu
- env: TARGET=s390x-unknown-linux-gnu
- env: TARGET=sparc64-unknown-linux-gnu
- env: TARGET=asmjs-unknown-emscripten
- env: TARGET=wasm32-unknown-emscripten

View File

@ -0,0 +1,14 @@
# link fails on 17.10
FROM ubuntu:17.04
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc libc6-dev qemu-user ca-certificates \
gcc-sparc64-linux-gnu libc6-dev-sparc64-cross
ENV CARGO_TARGET_SPARC64_UNKNOWN_LINUX_GNU_LINKER=sparc64-linux-gnu-gcc \
# TODO: in theory we should execute this, but qemu segfaults immediately
# see https://github.com/rust-lang/libc/issues/822
# CARGO_TARGET_SPARC64_UNKNOWN_LINUX_GNU_RUNNER="qemu-sparc64 -L /usr/sparc64-linux-gnu" \
CARGO_TARGET_SPARC64_UNKNOWN_LINUX_GNU_RUNNER=true \
CC_sparc64_unknown_linux_gnu=sparc64-linux-gnu-gcc \
PATH=$PATH:/rust/bin