Skip to content

Commit

Permalink
Rollup merge of rust-lang#130549 - biabbas:riscv32_wrs_vxworks, r=nne…
Browse files Browse the repository at this point in the history
…thercote

Add RISC-V vxworks targets

Risc-V 32 and RISC-V 64 targets are to be added in the target list.
  • Loading branch information
matthiaskrgr authored Sep 25, 2024
2 parents 2c408b1 + 557a0b8 commit 6a06555
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions std/src/sys/alloc/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ cfg_if::cfg_if! {
}
} else {
#[inline]
#[cfg_attr(target_os = "vxworks", allow(unused_unsafe))]
unsafe fn aligned_malloc(layout: &Layout) -> *mut u8 {
let mut out = ptr::null_mut();
// We prefer posix_memalign over aligned_alloc since it is more widely available, and
Expand Down

0 comments on commit 6a06555

Please sign in to comment.