Fix: Add proper flags for RISCV64 ci
This commit is contained in:
parent
4be26a9497
commit
d1229d008b
2 changed files with 4 additions and 4 deletions
|
|
@ -1,10 +1,9 @@
|
|||
FROM ubuntu:22.04
|
||||
FROM ubuntu:23.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-user
|
||||
gcc-riscv64-linux-gnu libc6-dev-riscv64-cross
|
||||
|
||||
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" \
|
||||
CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_RUNNER="qemu-riscv64 -L /usr/riscv64-linux-gnu -cpu rv64,zk=true" \
|
||||
OBJDUMP=riscv64-linux-gnu-objdump
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ case ${TARGET} in
|
|||
# Some of our test dependencies use the deprecated `gcc` crates which
|
||||
# doesn't detect RISC-V compilers automatically, so do it manually here.
|
||||
riscv64*)
|
||||
export RUSTFLAGS="${RUSTFLAGS} -Ctarget-feature=+zk"
|
||||
export TARGET_CC="riscv64-linux-gnu-gcc"
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue