Skip to content

Add RISC-V vxworks targets #130549

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 25, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Allow unused unsafe for vxworks in alligned_malloc to resolve build e…
…rrors
  • Loading branch information
biabbas committed Sep 20, 2024
commit 4957eda2c17ff43d52ece67b118ec304e5c41f11
1 change: 1 addition & 0 deletions library/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
Loading