Skip to content

Commit 662fbd3

Browse files
fix: make C API compatible with macOS
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>
1 parent 0c97182 commit 662fbd3

7 files changed

Lines changed: 6004 additions & 5953 deletions

File tree

Justfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ build:
88
# Use a fixed traversal seed for reproducible transpilation output
99
zig build --seed 12345
1010

11-
cmake-build-example: release
11+
cmake-build-example:
1212
cd example && mkdir -p build && cd build && cmake .. && make -j
1313

1414
cmake-run-example: cmake-build-example
1515
./example/build/example
1616

17-
bazel-build-example: release
17+
bazel-build-example:
1818
cd example && bazelisk build //:example
1919

2020
bazel-run-example: bazel-build-example

0 commit comments

Comments
 (0)