0
Fork 0
mirror of https://github.com/zml/zml.git synced 2026-11-16 19:11:09 +00:00

Compare commits

...

1 commit

Author SHA1 Message Date
Benjamin Rabier
a8a8716ef2 pjrt: fix comptime typedef lookup and FFI argument casts
Give structSize's compile-time search for the imported C typedef name a
10,000-branch budget so that PJRT struct-size lookup can complete under
Zig 0.17.1.

meta.Struct produces a distinct extern struct with the C argument layout.
Explicitly cast the type-registration and user-data argument pointers at
the FFI boundary, matching register(), so these methods can pass their
typed wrappers to the corresponding C callbacks.
2026-11-11 13:40:36 +01:00