Skip to content

feat: expose Zig toolchain zig.h#446

Merged
aherrmann merged 7 commits intomainfrom
zig-h
Mar 19, 2025
Merged

feat: expose Zig toolchain zig.h#446
aherrmann merged 7 commits intomainfrom
zig-h

Conversation

@aherrmann
Copy link
Owner

The Zig toolchain includes a zig.h header file that is included by header files generated using the -emit-h build flag. This change exposes that header file as a Bazel target that can be depended on by cc_* targets. It additionally sets the required CPP defines on the command-line.

  • Add a rule to expose the builtin zig.h header
  • Expose the builtin Zig header as Bazel target
  • Test that zig.h can be included
  • Update generated files
  • Add unit test for max_int_alignment function
  • Analysis test for ZIG_TARGET_MAX_INT_ALIGNMENT
  • Multi-platform analysis test for zig.h defines

@aherrmann aherrmann enabled auto-merge March 19, 2025 07:49
@aherrmann aherrmann merged commit ff2fb22 into main Mar 19, 2025
63 checks passed
@aherrmann aherrmann deleted the zig-h branch March 19, 2025 08:05
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