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

Commit

Permalink
Auto merge of #88 - NatalyaKovalova:ios-support, r=larsbergstrom
Browse files Browse the repository at this point in the history
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 -->
  • Loading branch information
bors-servo authored Sep 30, 2017
2 parents 630c712 + e251e76 commit 13f3929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ unsafe fn heap_size_of_impl(ptr: *const c_void) -> usize {
// this function doesn't modify the contents of the block that `ptr` points to, so we use
// `*const c_void` here.
extern "C" {
#[cfg_attr(any(prefixed_jemalloc, target_os = "macos", target_os = "android"), link_name = "je_malloc_usable_size")]
#[cfg_attr(any(prefixed_jemalloc, target_os = "macos", target_os = "ios", target_os = "android"), link_name = "je_malloc_usable_size")]
fn malloc_usable_size(ptr: *const c_void) -> usize;
}
malloc_usable_size(ptr)
Expand Down

0 comments on commit 13f3929

Please sign in to comment.