Unable to build for intel mac architecture
Closed this issue · 1 comments
Pranav2612000 commented
Encountering the following error when trying to build apple-sys
with screencapture-kit
feature
Non floating-type complex? Type(_Complex _Float16, kind: Complex, cconv: 100, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None)), Type(_Float16, kind: Float16, cconv: 100, decl: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None), canon: Cursor( kind: NoDeclFound, loc: builtin definitions, usr: None))
Pranav2612000 commented
I've done some research and found out that the error is due to an older version of bindgen
i.e 0.63
which does not have support for Float16
.
Updating bindgen to 0.69
fixes the issue.
Here's a fork in which it works -> https://github.com/Pranav2612000/apple-sys
I'll also open a PR if you want to merge those changes.