Add riscv64gc-unknown-linux-gnu image

This commit is contained in:
Yuki Okushi 2020-03-09 07:59:51 +09:00
parent 32184239e0
commit b9986d9dc4
No known key found for this signature in database
GPG Key ID: B0986C85C0E2DAA1
2 changed files with 14 additions and 0 deletions

View File

@ -72,6 +72,8 @@ jobs:
TARGET: powerpc64le-unknown-linux-gnu TARGET: powerpc64le-unknown-linux-gnu
s390x-unknown-linux-gnu: s390x-unknown-linux-gnu:
TARGET: s390x-unknown-linux-gnu TARGET: s390x-unknown-linux-gnu
riscv64gc-unknown-linux-gnu:
TARGET: riscv64gc-unknown-linux-gnu
#wasm32-wasi #wasm32-wasi
# TARGET: wasm32-wasi # TARGET: wasm32-wasi
sparc64-unknown-linux-gnu: sparc64-unknown-linux-gnu:

View File

@ -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