From 72702ef9adb24ba2936a03612d5ae62354e0b8b3 Mon Sep 17 00:00:00 2001 From: Artem Pikulin Date: Wed, 27 Jan 2021 13:08:46 +0700 Subject: [PATCH] parity-util-mem: use ios compilation conditions same as macos. --- parity-util-mem/src/lib.rs | 2 +- parity-util-mem/src/malloc_size.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/parity-util-mem/src/lib.rs b/parity-util-mem/src/lib.rs index c1add51a8..ffffde478 100644 --- a/parity-util-mem/src/lib.rs +++ b/parity-util-mem/src/lib.rs @@ -46,7 +46,7 @@ cfg_if::cfg_if! { pub mod allocators; -#[cfg(any(all(target_os = "macos", not(feature = "jemalloc-global"),), feature = "estimate-heapsize"))] +#[cfg(any(all(target_os = "macos", not(feature = "jemalloc-global"),), all(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..f05e699cd 100644 --- a/parity-util-mem/src/malloc_size.rs +++ b/parity-util-mem/src/malloc_size.rs @@ -216,7 +216,7 @@ 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(target_os = "macos", not(feature = "jemalloc-global"),), all(target_os = "ios", not(feature = "jemalloc-global"),), feature = "estimate-heapsize")))] pub mod inner_allocator_use { use super::*;