diff --git a/parity-util-mem/src/lib.rs b/parity-util-mem/src/lib.rs index c1add51a8..bf6334e0e 100644 --- a/parity-util-mem/src/lib.rs +++ b/parity-util-mem/src/lib.rs @@ -46,7 +46,10 @@ cfg_if::cfg_if! { pub mod allocators; -#[cfg(any(all(target_os = "macos", not(feature = "jemalloc-global"),), feature = "estimate-heapsize"))] +#[cfg(any( + all(any(target_os = "macos", target_os = "ios"), not(feature = "jemalloc-global"),), + feature = "estimate-heapsize" +))] pub mod sizeof; /// This is a copy of patched crate `malloc_size_of` as a module. diff --git a/parity-util-mem/src/malloc_size.rs b/parity-util-mem/src/malloc_size.rs index 476ea9d66..2e8a73eb7 100644 --- a/parity-util-mem/src/malloc_size.rs +++ b/parity-util-mem/src/malloc_size.rs @@ -216,7 +216,10 @@ pub trait MallocConditionalShallowSizeOf { fn conditional_shallow_size_of(&self, ops: &mut MallocSizeOfOps) -> usize; } -#[cfg(not(any(all(target_os = "macos", not(feature = "jemalloc-global"),), feature = "estimate-heapsize")))] +#[cfg(not(any( + all(any(target_os = "macos", target_os = "ios"), not(feature = "jemalloc-global"),), + feature = "estimate-heapsize" +)))] pub mod inner_allocator_use { use super::*;