Skip to content

feat: expose Zig toolchain zig.h #446

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Mar 19, 2025
Merged

feat: expose Zig toolchain zig.h #446

merged 7 commits into from
Mar 19, 2025

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