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:
Ed Schouten 2017-12-31 13:21:46 +01:00
parent 838fb4a6a0
commit c661e385fd

View File

@ -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;