Skip to content

Improve stubs for multi-platform usage#25

Merged
GuillaumeLagrange merged 3 commits intomainfrom
macos
Apr 16, 2026
Merged

Improve stubs for multi-platform usage#25
GuillaumeLagrange merged 3 commits intomainfrom
macos

Conversation

@GuillaumeLagrange
Copy link
Copy Markdown
Contributor

@GuillaumeLagrange GuillaumeLagrange commented Apr 10, 2026

@GuillaumeLagrange GuillaumeLagrange force-pushed the macos branch 11 times, most recently from 40e060d to 4376be3 Compare April 13, 2026 15:02
@GuillaumeLagrange GuillaumeLagrange marked this pull request as ready for review April 13, 2026 15:05
Comment thread includes/core.h
Comment thread src/c.zig
Comment thread Justfile
Comment thread scripts/stub.c Outdated
For real this time_final_final_v2.
@GuillaumeLagrange GuillaumeLagrange force-pushed the macos branch 3 times, most recently from 7dddb20 to 7fca46b Compare April 15, 2026 14:24
GuillaumeLagrange and others added 2 commits April 15, 2026 16:24
Use `c_char` (signed on macOS) instead of `u8` for all FFI string
parameters in c.zig, and change the public InstrumentHooks type to an
opaque struct so the header and generated core.c agree on the type
layout. The release script now post-processes Zig's mangled struct
names into stable `struct InstrumentHooks`.

Also fixes CMakeLists using CMAKE_CXX_COMPILER_ID for a C-only project
and removes the release dependency from example build targets.

Co-Authored-By: Claude <noreply@anthropic.com>
This is a band-aid, the real long term solution is to actually have a
part of the zig code transpiled to c and usable on macos rather than
just stubs.
@GuillaumeLagrange GuillaumeLagrange merged commit ecdf31a into main Apr 16, 2026
51 checks passed
@GuillaumeLagrange GuillaumeLagrange deleted the macos branch April 16, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants