Translate-c vector types on macOS

Hello,

On macOS, I compile ObjC with all kind of frameworks and libs with the Zig Build System .
But I cannot translate-c headers containing definitions from <simd/vector_types.h>. Looking into it, it seems translate-c is detected differently and the following macro guard results into false:
SIMD_COMPILER_HAS_REQUIRED_FEATURES

More context:
I’ve been mainly defining things on Zig’s side and duplicating the structs in headers.

Parallel declaration has worked so far (obviously, sometimes I would get it wrong and get some pretty obvious UB).

Then, I wanted to ensure a constant was declared once for both sides and got into translate-c. It worked fine and everything was great so far.

But then I thought: OK, If declare my exported structs in ObjC then I never have the problem of matcging declarations again. But:

  • I can’t figure out how to export vector_float2 for example if it is even possible
  • I cannot control defaults (everything gets 0, false etc)
  • I don’t know how much completion I get, for some reason I had none?

Thank you for your attention!