Skip to content

feat: add arbitrary zigopts attribute#530

Merged
aherrmann merged 1 commit intoaherrmann:mainfrom
cerisier:cerisier/zigopts
Sep 23, 2025
Merged

feat: add arbitrary zigopts attribute#530
aherrmann merged 1 commit intoaherrmann:mainfrom
cerisier:cerisier/zigopts

Conversation

@cerisier
Copy link
Contributor

@cerisier cerisier commented Sep 22, 2025

Closes #83 and #523

For now, no zig_build attributes are applicable to zig_module so I didn't add any.
I added the docs that states that this is an advanced feature.

Copy link
Owner

@aherrmann aherrmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, looks good!

Has some merge conflicts.

@cerisier
Copy link
Contributor Author

@aherrmann Fixed

@aherrmann aherrmann enabled auto-merge September 23, 2025 12:26
@aherrmann aherrmann merged commit 2df2eae into aherrmann:main Sep 23, 2025
17 checks passed
@cerisier cerisier deleted the cerisier/zigopts branch September 23, 2025 15:20
cerisier added a commit to cerisier/rules_zig2 that referenced this pull request Oct 26, 2025
Addition to aherrmann#530

This allows to pass global arbitrary Zig compiler options to all
compile actions.

One useful usage is to set -mcpu=native from a common:native config
statement so that all compile actions receive the flag.
cerisier added a commit to cerisier/rules_zig2 that referenced this pull request Nov 16, 2025
Addition to aherrmann#530

This allows to pass global arbitrary Zig compiler options to all
compile actions.

One useful usage is to set -mcpu=native from a common:native config
statement so that all compile actions receive the flag.
cerisier added a commit to cerisier/rules_zig2 that referenced this pull request Feb 6, 2026
Addition to aherrmann#530

This allows to pass global arbitrary Zig compiler options to all
compile actions.

One useful usage is to set -mcpu=native from a common:native config
statement so that all compile actions receive the flag.
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.

Support arbitrary Zig compiler flags through a zigopts attribute.

2 participants