Skip to content

Commit 71f58bd

Browse files
coastalwhiteAmanieu
authored andcommitted
Fix: Testing for RISC-V Zb intrinsics
1 parent 8cdb245 commit 71f58bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ci/docker/riscv64gc-unknown-linux-gnu/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
55
gcc-riscv64-linux-gnu libc6-dev-riscv64-cross
66

77
ENV CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_LINKER=riscv64-linux-gnu-gcc \
8-
CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_RUNNER="qemu-riscv64 -L /usr/riscv64-linux-gnu -cpu rv64,zk=true" \
8+
CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_RUNNER="qemu-riscv64 -L /usr/riscv64-linux-gnu -cpu rv64,zk=true,zbb=true,zbc=true" \
99
OBJDUMP=riscv64-linux-gnu-objdump

ci/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ case ${TARGET} in
4747
# Some of our test dependencies use the deprecated `gcc` crates which
4848
# doesn't detect RISC-V compilers automatically, so do it manually here.
4949
riscv64*)
50-
export RUSTFLAGS="${RUSTFLAGS} -Ctarget-feature=+zk"
50+
export RUSTFLAGS="${RUSTFLAGS} -Ctarget-feature=+zk,+zbb,+zbc"
5151
export TARGET_CC="riscv64-linux-gnu-gcc"
5252
;;
5353
esac

0 commit comments

Comments
 (0)