-
Notifications
You must be signed in to change notification settings - Fork 379
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
413: Add riscv64gc-unknown-linux-gnu support r=reitermarkus a=tblah rust support for riscv64gc-unknown-linux-gnu [is not yet advertised](https://forge.rust-lang.org/release/platform-support.html), but [is merged](rust-lang/rust#66661). There are [issues](rust-lang/rust#62117) with riscv64gc-unknown-linux-gnu but it works well enough to build many crates (including rustc). Co-authored-by: Tom Eccles <tom.eccles@codethink.co.uk>
- Loading branch information
Showing
4 changed files
with
29 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 |
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