-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add riscvgc-unknown-linux-gnu support
- Loading branch information
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM ubuntu:18.04 | ||
|
||
COPY common.sh / | ||
RUN /common.sh | ||
|
||
# COPY cmake.sh / | ||
# RUN /cmake.sh | ||
|
||
COPY xargo.sh / | ||
RUN /xargo.sh | ||
|
||
RUN apt-get install -y --no-install-recommends \ | ||
g++-riscv64-linux-gnu \ | ||
libc6-dev-riscv64-cross | ||
|
||
COPY qemu.sh / | ||
RUN /qemu.sh riscv64 | ||
|
||
COPY linux-runner / | ||
|
||
ENV CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_LINKER=riscv64-linux-gnu-gcc \ | ||
CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_RUNNER="/linux-runner riscv64" \ | ||
CC_riscv64gc_unknown_linux_gnu=riscv64-linux-gnu-gcc \ | ||
CXX_riscv64gc_unknown_linux_gnu=riscv64-linux-gnu-g++ \ | ||
QEMU_LD_PREFIX=/usr/riscv64-linux-gnu \ | ||
RUST_TEST_THREADS=1 |