Add rules_zig to the Starlarkification allowlist #589
+2
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
rules_zig needs to invoke
cc_common.linkwith themain_outputparameter when users request linking via the C toolchain. Motivation for this linking mode is provided in aherrmann/rules_zig#519. The need for access to themain_outputparameter is motivated in aherrmann/rules_zig#519 (comment).rules_zig used to work around this issue with the same hack that rules_rust and rules_mojo applied, but this is no longer available as of Bazel 9.0.0, see aherrmann/rules_zig#589. As described in bazelbuild/bazel#23838 (comment) there does not seem to be any other work around available. So, I would like to request to add rules_zig to the list of rule sets that are allowed to use the private
cc_common.linkAPI.Note, this is a blocker for Bazel 9.0.0 support in rules_zig, see aherrmann/rules_zig#592.