Skip to content

Commit c894c05

Browse files
authored
vendor riscv64 sys.rs (#324)
Tested on a riscv64 device with io-uring-test.
1 parent 3541155 commit c894c05

File tree

3 files changed

+3546
-1
lines changed

3 files changed

+3546
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
- x86_64-unknown-linux-gnu
4848
- x86_64-unknown-linux-musl
4949
- aarch64-unknown-linux-gnu
50+
- riscv64gc-unknown-linux-gnu
5051

5152
steps:
5253
- uses: actions/checkout@v4

src/sys/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ use libc::*;
1717

1818
#[cfg(all(
1919
not(feature = "bindgen"),
20-
not(any(target_arch = "x86_64", target_arch = "aarch64")),
20+
not(any(
21+
target_arch = "x86_64",
22+
target_arch = "aarch64",
23+
target_arch = "riscv64"
24+
)),
2125
not(io_uring_skip_arch_check)
2226
))]
2327
compile_error!(

0 commit comments

Comments
 (0)