Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a31c793

Browse files
committedApr 29, 2022
Auto merge of #2540 - kraj:rv32-musl, r=Amanieu
Add riscv32 support for musl C library based linux platforms Signed-off-by: Khem Raj <raj.khem@gmail.com>
2 parents ae3414c + 391a9b2 commit a31c793

File tree

4 files changed

+818
-0
lines changed

4 files changed

+818
-0
lines changed
 

‎src/unix/linux_like/linux/musl/b32/mod.rs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ cfg_if! {
5454
} else if #[cfg(any(target_arch = "hexagon"))] {
5555
mod hexagon;
5656
pub use self::hexagon::*;
57+
} else if #[cfg(any(target_arch = "riscv32"))] {
58+
mod riscv32;
59+
pub use self::riscv32::*;
5760
} else {
5861
// Unknown target_arch
5962
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
s_no_extra_traits! {
2+
#[allow(missing_debug_implementations)]
3+
#[repr(align(8))]
4+
pub struct max_align_t {
5+
priv_: (i64, f64)
6+
}
7+
}

‎src/unix/linux_like/linux/musl/b32/riscv32/mod.rs‎

Lines changed: 807 additions & 0 deletions
Large diffs are not rendered by default.

‎src/unix/linux_like/linux/musl/mod.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,7 @@ cfg_if! {
766766
target_arch = "mips",
767767
target_arch = "powerpc",
768768
target_arch = "hexagon",
769+
target_arch = "riscv32",
769770
target_arch = "arm"))] {
770771
mod b32;
771772
pub use self::b32::*;

0 commit comments

Comments
 (0)
Please sign in to comment.