diff options
| author | Ed Schouten <ed@nuxi.nl> | 2017-12-31 13:21:46 +0100 |
|---|---|---|
| committer | Ed Schouten <ed@nuxi.nl> | 2017-12-31 13:21:46 +0100 |
| commit | c661e385fd81afef808f414867cc44a6c897195e (patch) | |
| tree | 126da0eed89a5678866269cb6b4f1cdd2d1a5663 /src/liballoc_system | |
| parent | 838fb4a6a0d11ac2c24189518415d181638af001 (diff) | |
| download | rust-c661e385fd81afef808f414867cc44a6c897195e.tar.gz rust-c661e385fd81afef808f414867cc44a6c897195e.zip | |
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.
Diffstat (limited to 'src/liballoc_system')
| -rw-r--r-- | src/liballoc_system/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc_system/lib.rs b/src/liballoc_system/lib.rs index 45971754748..1d5e7b73be5 100644 --- a/src/liballoc_system/lib.rs +++ b/src/liballoc_system/lib.rs @@ -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; |
