Build the right platform module on CloudABI.
After #47089 lands, CloudABI will no longer be considered UNIX. We need to pick the right allocator flavour now.
This commit is contained in:
parent
838fb4a6a0
commit
c661e385fd
@ -21,7 +21,7 @@
|
||||
#![feature(core_intrinsics)]
|
||||
#![feature(staged_api)]
|
||||
#![feature(rustc_attrs)]
|
||||
#![cfg_attr(any(unix, target_os = "redox"), feature(libc))]
|
||||
#![cfg_attr(any(unix, target_os = "cloudabi", target_os = "redox"), feature(libc))]
|
||||
#![rustc_alloc_kind = "lib"]
|
||||
|
||||
// The minimum alignment guaranteed by the architecture. This value is used to
|
||||
@ -116,7 +116,7 @@ unsafe impl Alloc for System {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(any(unix, target_os = "redox"))]
|
||||
#[cfg(any(unix, target_os = "cloudabi", target_os = "redox"))]
|
||||
mod platform {
|
||||
extern crate libc;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user