File tree 4 files changed +24
-14
lines changed
docker/riscv64gc-unknown-linux-gnu
src/unix/linux_like/linux/gnu/b64/riscv64 4 files changed +24
-14
lines changed Original file line number Diff line number Diff line change 72
72
TARGET : powerpc64le-unknown-linux-gnu
73
73
s390x-unknown-linux-gnu :
74
74
TARGET : s390x-unknown-linux-gnu
75
+ riscv64gc-unknown-linux-gnu :
76
+ TARGET : riscv64gc-unknown-linux-gnu
75
77
# wasm32-wasi
76
78
# TARGET: wasm32-wasi
77
79
sparc64-unknown-linux-gnu :
Original file line number Diff line number Diff line change
1
+ FROM ubuntu:20.04
2
+
3
+ RUN apt-get update && apt-get install -y --no-install-recommends \
4
+ gcc libc6-dev qemu-user ca-certificates \
5
+ gcc-riscv64-linux-gnu libc6-dev-riscv64-cross \
6
+ qemu-system-riscv64 linux-headers-generic
7
+
8
+ ENV CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_LINKER=riscv64-linux-gnu-gcc \
9
+ CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_RUNNER="qemu-riscv64 -L /usr/riscv64-linux-gnu" \
10
+ CC_riscv64gc_unknown_linux_gnu=riscv64-linux-gnu-gcc \
11
+ CFLAGS_riscv64gc_unknown_linux_gnu="-mabi=lp64d -fPIC" \
12
+ PATH=$PATH:/rust/bin
Original file line number Diff line number Diff line change @@ -2231,6 +2231,7 @@ fn test_linux(target: &str) {
2231
2231
let aarch64_musl = target. contains ( "aarch64" ) && musl;
2232
2232
let gnuabihf = target. contains ( "gnueabihf" ) ;
2233
2233
let x86_64_gnux32 = target. contains ( "gnux32" ) && x86_64;
2234
+ let riscv64 = target. contains ( "riscv64" ) ;
2234
2235
2235
2236
let mut cfg = ctest_cfg ( ) ;
2236
2237
cfg. define ( "_GNU_SOURCE" , None ) ;
@@ -2657,7 +2658,7 @@ fn test_linux(target: &str) {
2657
2658
( struct_ == "timex" && field. starts_with ( "__unused" ) ) ||
2658
2659
// FIXME: It now takes mode_t since glibc 2.31 on some targets.
2659
2660
( struct_ == "ipc_perm" && field == "mode"
2660
- && ( ( x86_64 || i686 || arm) && gnu || x86_64_gnux32)
2661
+ && ( ( x86_64 || i686 || arm || riscv64 ) && gnu || x86_64_gnux32)
2661
2662
)
2662
2663
} ) ;
2663
2664
Original file line number Diff line number Diff line change 17
17
__size: [ :: c_ulong; 7 ] ,
18
18
}
19
19
20
- pub struct timespec {
21
- pub tv_sec: :: time_t,
22
- pub tv_nsec: :: c_long,
23
- }
24
-
25
20
pub struct stat {
26
21
pub st_dev: :: dev_t,
27
22
pub st_ino: :: ino_t,
41
36
pub st_mtime_nsec: :: c_long,
42
37
pub st_ctime: :: time_t,
43
38
pub st_ctime_nsec: :: c_long,
44
- pub __unused: [ :: c_int; 2usize ] ,
39
+ __unused: [ :: c_int; 2usize ] ,
45
40
}
46
41
47
42
pub struct stat64 {
63
58
pub st_mtime_nsec: :: c_long,
64
59
pub st_ctime: :: time_t,
65
60
pub st_ctime_nsec: :: c_long,
66
- pub __unused: [ :: c_int; 2 ] ,
61
+ __unused: [ :: c_int; 2 ] ,
67
62
}
68
63
69
64
pub struct statfs {
@@ -161,11 +156,11 @@ s! {
161
156
pub cuid: :: uid_t,
162
157
pub cgid: :: gid_t,
163
158
pub mode: :: c_ushort,
164
- pub __pad1: :: c_ushort,
159
+ __pad1: :: c_ushort,
165
160
pub __seq: :: c_ushort,
166
- pub __pad2: :: c_ushort,
167
- pub __unused1: :: c_ulong,
168
- pub __unused2: :: c_ulong,
161
+ __pad2: :: c_ushort,
162
+ __unused1: :: c_ulong,
163
+ __unused2: :: c_ulong,
169
164
}
170
165
171
166
pub struct shmid_ds {
177
172
pub shm_cpid: :: pid_t,
178
173
pub shm_lpid: :: pid_t,
179
174
pub shm_nattch: :: shmatt_t,
180
- pub __unused5: :: c_ulong,
181
- pub __unused6: :: c_ulong,
175
+ __unused5: :: c_ulong,
176
+ __unused6: :: c_ulong,
182
177
}
183
178
184
179
pub struct flock {
You can’t perform that action at this time.
0 commit comments