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.
diff --git a/.travis.yml b/.travis.yml
index 80246d1..bd7592c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -78,6 +78,7 @@
- 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
diff --git a/ci/docker/sparc64-unknown-linux-gnu/Dockerfile b/ci/docker/sparc64-unknown-linux-gnu/Dockerfile
new file mode 100644
index 0000000..2d53371
--- /dev/null
+++ b/ci/docker/sparc64-unknown-linux-gnu/Dockerfile
@@ -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