Skip to content

Commit 72702ef

Browse files
committed
parity-util-mem: use ios compilation conditions same as macos.
1 parent 38627a6 commit 72702ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

parity-util-mem/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ cfg_if::cfg_if! {
4646

4747
pub mod allocators;
4848

49-
#[cfg(any(all(target_os = "macos", not(feature = "jemalloc-global"),), feature = "estimate-heapsize"))]
49+
#[cfg(any(all(target_os = "macos", not(feature = "jemalloc-global"),), all(target_os = "ios", not(feature = "jemalloc-global"),), feature = "estimate-heapsize"))]
5050
pub mod sizeof;
5151

5252
/// This is a copy of patched crate `malloc_size_of` as a module.

parity-util-mem/src/malloc_size.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ pub trait MallocConditionalShallowSizeOf {
216216
fn conditional_shallow_size_of(&self, ops: &mut MallocSizeOfOps) -> usize;
217217
}
218218

219-
#[cfg(not(any(all(target_os = "macos", not(feature = "jemalloc-global"),), feature = "estimate-heapsize")))]
219+
#[cfg(not(any(all(target_os = "macos", not(feature = "jemalloc-global"),), all(target_os = "ios", not(feature = "jemalloc-global"),), feature = "estimate-heapsize")))]
220220
pub mod inner_allocator_use {
221221

222222
use super::*;

0 commit comments

Comments
 (0)