Skip to content

Commit 391a9b2

Browse files
committed
Add riscv32 support for musl C library based linux platforms
Signed-off-by: Khem Raj <[email protected]>
1 parent 69b86ab commit 391a9b2

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
@@ -60,6 +60,9 @@ cfg_if! {
6060
} else if #[cfg(any(target_arch = "hexagon"))] {
6161
mod hexagon;
6262
pub use self::hexagon::*;
63+
} else if #[cfg(any(target_arch = "riscv32"))] {
64+
mod riscv32;
65+
pub use self::riscv32::*;
6366
} else {
6467
// Unknown target_arch
6568
}
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+
}

0 commit comments

Comments
 (0)