Skip to content

Commit

Permalink
Fix aarch64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
simlay committed Sep 19, 2020
1 parent 8c35bb1 commit 0dd155b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ fn build(sdk_path: Option<&str>, target: &str) {
// calls from NSCalendar.h in the Foundation framework. This removes that one variable.
builder = builder.blacklist_item("timezone");
builder = builder.blacklist_item("objc_object");

// https://github.com/rust-lang/rust-bindgen/pull/1883 removed the Copy derive from
// objective-c class structs :/.
builder = builder.blacklist_item("os_workgroup_t");
builder = builder.raw_line("#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct os_workgroup_s { _unused: [u8; 0], } pub type os_workgroup_t = *mut os_workgroup_s;");
}

let meta_header: Vec<_> = headers
Expand Down

0 comments on commit 0dd155b

Please sign in to comment.