floooh/sokol-zig

Reminder: macOS ABI issues for small structs are fixed in zig 0.9.0

floooh opened this issue · 2 comments

This means small structs used as function args or return values no longer need to be padded to become bigger than 16 bytes, so the SOKOL_ZIG_BINDINGS hack can be removed from the sokol headers and sokol-zig bindings once zig 0.9.0 is released.

(see: ziglang/zig#3211)

PS: are they actually? Need to test on an Intel Mac!

floooh commented

I actually removed the struct padding hack quite recently (it is at least no longer an issue on M1 Macs, haven't actually tested in Intel Macs though)