Skip to content

Improve stubs for multi-platform usage#25

Open
GuillaumeLagrange wants to merge 3 commits intomainfrom
macos
Open

Improve stubs for multi-platform usage#25
GuillaumeLagrange wants to merge 3 commits intomainfrom
macos

Conversation

@GuillaumeLagrange
Copy link
Copy Markdown
Contributor

@GuillaumeLagrange GuillaumeLagrange commented Apr 10, 2026

@GuillaumeLagrange GuillaumeLagrange force-pushed the macos branch 2 times, most recently from 882e68f to 11a5bb7 Compare April 10, 2026 15:11
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>
@GuillaumeLagrange GuillaumeLagrange force-pushed the macos branch 6 times, most recently from f115d94 to 43f4886 Compare April 13, 2026 12:14
@GuillaumeLagrange GuillaumeLagrange force-pushed the macos branch 2 times, most recently from f6831bf to 0a9e975 Compare April 13, 2026 14:24
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.
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.

1 participant