Skip to content

Commit

Permalink
Auto merge of #2540 - kraj:rv32-musl, r=Amanieu
Browse files Browse the repository at this point in the history
Add riscv32 support for musl C library based linux platforms

Signed-off-by: Khem Raj <raj.khem@gmail.com>
  • Loading branch information
bors committed Apr 29, 2022
2 parents ae3414c + 391a9b2 commit a31c793
Show file tree
Hide file tree
Showing 4 changed files with 818 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/unix/linux_like/linux/musl/b32/mod.rs
Expand Up @@ -54,6 +54,9 @@ cfg_if! {
} else if #[cfg(any(target_arch = "hexagon"))] {
mod hexagon;
pub use self::hexagon::*;
} else if #[cfg(any(target_arch = "riscv32"))] {
mod riscv32;
pub use self::riscv32::*;
} else {
// Unknown target_arch
}
Expand Down
7 changes: 7 additions & 0 deletions src/unix/linux_like/linux/musl/b32/riscv32/align.rs
@@ -0,0 +1,7 @@
s_no_extra_traits! {
#[allow(missing_debug_implementations)]
#[repr(align(8))]
pub struct max_align_t {
priv_: (i64, f64)
}
}

0 comments on commit a31c793

Please sign in to comment.