diff options
| author | Steven Fackler <sfackler@gmail.com> | 2014-09-28 22:07:45 -0700 |
|---|---|---|
| committer | Steven Fackler <sfackler@palantir.com> | 2014-09-30 12:52:00 -0700 |
| commit | 1e0c7b682f1675e39085f1f0f928a37364bab9c7 (patch) | |
| tree | f416bdb1942ea13d25fb71824072d444fba6ad67 /src/liballoc | |
| parent | c76151529a79bf85f54d95cf41876d83a0fdad1d (diff) | |
| download | rust-1e0c7b682f1675e39085f1f0f928a37364bab9c7.tar.gz rust-1e0c7b682f1675e39085f1f0f928a37364bab9c7.zip | |
Fix liballoc
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/heap.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/liballoc/heap.rs b/src/liballoc/heap.rs index 349ae15eb32..0d2872bcba0 100644 --- a/src/liballoc/heap.rs +++ b/src/liballoc/heap.rs @@ -111,12 +111,12 @@ unsafe fn exchange_free(ptr: *mut u8, size: uint, align: uint) { // The minimum alignment guaranteed by the architecture. This value is used to // add fast paths for low alignment values. In practice, the alignment is a // constant at the call site and the branch will be optimized out. -#[cfg(target_arch = "arm")] -#[cfg(target_arch = "mips")] -#[cfg(target_arch = "mipsel")] +#[cfg(any(target_arch = "arm", + target_arch = "mips", + target_arch = "mipsel"))] static MIN_ALIGN: uint = 8; -#[cfg(target_arch = "x86")] -#[cfg(target_arch = "x86_64")] +#[cfg(any(target_arch = "x86", + target_arch = "x86_64"))] static MIN_ALIGN: uint = 16; #[cfg(jemalloc)] @@ -146,7 +146,7 @@ mod imp { } // -lpthread needs to occur after -ljemalloc, the earlier argument isn't enough - #[cfg(not(windows), not(target_os = "android"))] + #[cfg(all(not(windows), not(target_os = "android")))] #[link(name = "pthread")] extern {} @@ -206,7 +206,7 @@ mod imp { } } -#[cfg(not(jemalloc), unix)] +#[cfg(all(not(jemalloc), unix))] mod imp { use core::cmp; use core::ptr; @@ -268,7 +268,7 @@ mod imp { pub fn stats_print() {} } -#[cfg(not(jemalloc), windows)] +#[cfg(all(not(jemalloc), windows))] mod imp { use libc::{c_void, size_t}; use libc; |
