-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add riscv64gc-unknown-linux-gnu
image
#1684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM ubuntu:20.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-system-riscv64 linux-headers-generic | ||
|
||
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" \ | ||
CC_riscv64gc_unknown_linux_gnu=riscv64-linux-gnu-gcc \ | ||
CFLAGS_riscv64gc_unknown_linux_gnu="-mabi=lp64d -fPIC" \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is only needed because rust is still using llvm9, with llvm10 the riscv64gc-unknown-linux-gnu target should use the proper defaults now. |
||
PATH=$PATH:/rust/bin |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2231,6 +2231,7 @@ fn test_linux(target: &str) { | |
let aarch64_musl = target.contains("aarch64") && musl; | ||
let gnuabihf = target.contains("gnueabihf"); | ||
let x86_64_gnux32 = target.contains("gnux32") && x86_64; | ||
let riscv64 = target.contains("riscv64"); | ||
|
||
let mut cfg = ctest_cfg(); | ||
cfg.define("_GNU_SOURCE", None); | ||
|
@@ -2657,7 +2658,7 @@ fn test_linux(target: &str) { | |
(struct_ == "timex" && field.starts_with("__unused")) || | ||
// FIXME: It now takes mode_t since glibc 2.31 on some targets. | ||
(struct_ == "ipc_perm" && field == "mode" | ||
&& ((x86_64 || i686 || arm) && gnu || x86_64_gnux32) | ||
&& ((x86_64 || i686 || arm || riscv64) && gnu || x86_64_gnux32) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ipc_perm now uses mode_t everywhere. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Skipping this because it was introduced in the newest version of glibc and I'd like to wait for a while. On riscv, isn't it newer change? |
||
) | ||
}); | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.