Skip to content

Commit 0dd155b

Browse files
committed
Fix aarch64 build
1 parent 8c35bb1 commit 0dd155b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ fn build(sdk_path: Option<&str>, target: &str) {
113113
// calls from NSCalendar.h in the Foundation framework. This removes that one variable.
114114
builder = builder.blacklist_item("timezone");
115115
builder = builder.blacklist_item("objc_object");
116+
117+
// https://github.com/rust-lang/rust-bindgen/pull/1883 removed the Copy derive from
118+
// objective-c class structs :/.
119+
builder = builder.blacklist_item("os_workgroup_t");
120+
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;");
116121
}
117122

118123
let meta_header: Vec<_> = headers

0 commit comments

Comments
 (0)