ccouzens / tesseract-sys

Rust FFI bindings to tesseract
MIT License
26 stars 18 forks source link

On Mac, hardcode the public type bindings #17

Closed ccouzens closed 2 years ago

ccouzens commented 2 years ago

Do not generate them, as the Mac clang is a source of regular issues building them.

They haven't changed in 5 years since they were introduced, so I think this is a fairly safe change

https://github.com/tesseract-ocr/tesseract/blob/main/include/tesseract/publictypes.h#L30-L43 (check the blame).

ccouzens commented 2 years ago

I'm not on a Mac, so haven't been able to properly test this.

I have checked that by changing cfg( to give me the Mac options everything worked.