Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ee48c7a

Browse files
committedMar 8, 2020
Add riscv64gc-unknown-linux-gnu image
1 parent 7455403 commit ee48c7a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
 

‎ci/azure.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ jobs:
7070
TARGET: powerpc64-unknown-linux-gnu
7171
powerpc64le-unknown-linux-gnu:
7272
TARGET: powerpc64le-unknown-linux-gnu
73+
riscv64gc-unknown-linux-gnu:
74+
TARGET: riscv64gc-unknown-linux-gnu
7375
#s390x-unknown-linux-gnu:
7476
# TARGET: s390x-unknown-linux-gnu
7577
#wasm32-wasi
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM ubuntu:19.10
2+
3+
RUN apt-get update && apt-get install -y --no-install-recommends \
4+
gcc libc6-dev qemu-user ca-certificates \
5+
gcc-riscv64-linux-gnu libc6-dev-riscv64-cross \
6+
qemu-system-riscv64 linux-headers-generic
7+
8+
ENV CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_LINKER=riscv64-linux-gnu-gcc \
9+
CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_RUNNER="qemu-riscv64 -L /usr/riscv64-linux-gnu" \
10+
CC_riscv64gc_unknown_linux_gnu=riscv64-linux-gnu-gcc \
11+
CFLAGS_riscv64gc_unknown_linux_gnu="-mabi=lp64d -fPIC" \
12+
PATH=$PATH:/rust/bin

0 commit comments

Comments
 (0)
Please sign in to comment.