summaryrefslogtreecommitdiff
path: root/ci/docker
diff options
context:
space:
mode:
authorWang Xuerui <git@xen0n.name>2019-07-31 13:22:45 +0800
committerWang Xuerui <git@xen0n.name>2019-08-17 10:25:51 +0800
commit2883e4ce0fb6b24d8953217074e2550d183c6dca (patch)
treead0840c72767bb94edd292450cad6cf3f83a2daf /ci/docker
parentcd51d11fcbe4352578ae356cc3f21e8c6bf1cf26 (diff)
downloadrust-libc-2883e4ce0fb6b24d8953217074e2550d183c6dca.tar.gz
ci: Add mips64(el)-unknown-linux-muslabi64 as initially no_core targets
Diffstat (limited to 'ci/docker')
-rw-r--r--ci/docker/mips64-unknown-linux-muslabi64/Dockerfile15
-rw-r--r--ci/docker/mips64el-unknown-linux-muslabi64/Dockerfile15
2 files changed, 30 insertions, 0 deletions
diff --git a/ci/docker/mips64-unknown-linux-muslabi64/Dockerfile b/ci/docker/mips64-unknown-linux-muslabi64/Dockerfile
new file mode 100644
index 0000000000..8f63ade604
--- /dev/null
+++ b/ci/docker/mips64-unknown-linux-muslabi64/Dockerfile
@@ -0,0 +1,15 @@
+FROM ubuntu:19.04
+
+RUN apt-get update && apt-get install -y --no-install-recommends \
+ gcc make libc6-dev git curl ca-certificates \
+ gcc-mips64-linux-gnuabi64 qemu-user
+
+COPY install-musl.sh /
+RUN sh /install-musl.sh mips64
+
+# FIXME: shouldn't need the `-lgcc` here, shouldn't that be in libstd?
+ENV PATH=$PATH:/musl-mips64/bin:/rust/bin \
+ CC_mips64_unknown_linux_muslabi64=musl-gcc \
+ RUSTFLAGS='-Clink-args=-lgcc' \
+ CARGO_TARGET_MIPS64_UNKNOWN_LINUX_MUSLABI64_LINKER=musl-gcc \
+ CARGO_TARGET_MIPS64_UNKNOWN_LINUX_MUSLABI64_RUNNER="qemu-mips64 -L /musl-mips64"
diff --git a/ci/docker/mips64el-unknown-linux-muslabi64/Dockerfile b/ci/docker/mips64el-unknown-linux-muslabi64/Dockerfile
new file mode 100644
index 0000000000..c42c2ba601
--- /dev/null
+++ b/ci/docker/mips64el-unknown-linux-muslabi64/Dockerfile
@@ -0,0 +1,15 @@
+FROM ubuntu:19.04
+
+RUN apt-get update && apt-get install -y --no-install-recommends \
+ gcc make libc6-dev git curl ca-certificates \
+ gcc-mips64el-linux-gnuabi64 qemu-user
+
+COPY install-musl.sh /
+RUN sh /install-musl.sh mips64el
+
+# FIXME: shouldn't need the `-lgcc` here, shouldn't that be in libstd?
+ENV PATH=$PATH:/musl-mips64el/bin:/rust/bin \
+ CC_mips64el_unknown_linux_muslabi64=musl-gcc \
+ RUSTFLAGS='-Clink-args=-lgcc' \
+ CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_MUSLABI64_LINKER=musl-gcc \
+ CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_MUSLABI64_RUNNER="qemu-mips64el -L /musl-mips64el"