diff options
author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-03-09 07:59:51 +0900 |
---|---|---|
committer | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-04-30 05:20:45 +0900 |
commit | b9986d9dc4e7ca47b3d07ae9ca5870196c5f19b6 (patch) | |
tree | 6f1578f4a6026d03c9c544555d28de51149a4196 /ci | |
parent | 32184239e093bf205baed1e91395e3b3f2dfe82a (diff) | |
download | rust-libc-b9986d9dc4e7ca47b3d07ae9ca5870196c5f19b6.tar.gz |
Add `riscv64gc-unknown-linux-gnu` image
Diffstat (limited to 'ci')
-rw-r--r-- | ci/azure.yml | 2 | ||||
-rw-r--r-- | ci/docker/riscv64gc-unknown-linux-gnu/Dockerfile | 12 |
2 files changed, 14 insertions, 0 deletions
diff --git a/ci/azure.yml b/ci/azure.yml index 52d1e47946..6a2f685320 100644 --- a/ci/azure.yml +++ b/ci/azure.yml @@ -72,6 +72,8 @@ jobs: TARGET: powerpc64le-unknown-linux-gnu s390x-unknown-linux-gnu: TARGET: s390x-unknown-linux-gnu + riscv64gc-unknown-linux-gnu: + TARGET: riscv64gc-unknown-linux-gnu #wasm32-wasi # TARGET: wasm32-wasi sparc64-unknown-linux-gnu: diff --git a/ci/docker/riscv64gc-unknown-linux-gnu/Dockerfile b/ci/docker/riscv64gc-unknown-linux-gnu/Dockerfile new file mode 100644 index 0000000000..2ab35b317f --- /dev/null +++ b/ci/docker/riscv64gc-unknown-linux-gnu/Dockerfile @@ -0,0 +1,12 @@ +FROM ubuntu:20.04 + +RUN apt-get update && apt-get install -y --no-install-recommends \ + gcc libc6-dev qemu-user ca-certificates \ + gcc-riscv64-linux-gnu libc6-dev-riscv64-cross \ + qemu-system-riscv64 linux-headers-generic + +ENV CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_LINKER=riscv64-linux-gnu-gcc \ + CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_RUNNER="qemu-riscv64 -L /usr/riscv64-linux-gnu" \ + CC_riscv64gc_unknown_linux_gnu=riscv64-linux-gnu-gcc \ + CFLAGS_riscv64gc_unknown_linux_gnu="-mabi=lp64d -fPIC" \ + PATH=$PATH:/rust/bin |