Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Commit 13f3929

Browse files
author
bors-servo
authored
Auto merge of #88 - NatalyaKovalova:ios-support, r=larsbergstrom
Add iOS support Ability to build heapsize for iOS platform have been added in this PR. For building could be used: cargo build --target aarch64-apple-ios r? @larsbergstrom , could you, please, make code review and accept changes? <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/heapsize/88) <!-- Reviewable:end -->
2 parents 630c712 + e251e76 commit 13f3929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ unsafe fn heap_size_of_impl(ptr: *const c_void) -> usize {
4040
// this function doesn't modify the contents of the block that `ptr` points to, so we use
4141
// `*const c_void` here.
4242
extern "C" {
43-
#[cfg_attr(any(prefixed_jemalloc, target_os = "macos", target_os = "android"), link_name = "je_malloc_usable_size")]
43+
#[cfg_attr(any(prefixed_jemalloc, target_os = "macos", target_os = "ios", target_os = "android"), link_name = "je_malloc_usable_size")]
4444
fn malloc_usable_size(ptr: *const c_void) -> usize;
4545
}
4646
malloc_usable_size(ptr)

0 commit comments

Comments
 (0)