Skip to content

Scope extra_rustc_flag to target configurations - #72

Merged
dzbarsky merged 1 commit into
mainfrom
codex/rustc-target-scope
Oct 2, 2026
Merged

dzbarsky merged 1 commit into
mainfrom
codex/rustc-target-scope

Conversation

@dzbarsky

@dzbarsky dzbarsky commented Oct 2, 2026

Copy link
Copy Markdown
Member

Mark extra_rustc_flag as target-scoped so Bazel 9 drops its values before configuring exec dependencies. Rust compilation already ignores this setting in exec configurations, so retaining it only creates unnecessary configuration differences.

Validation: all four focused extra-rustc-flag and collect-cfgs tests pass; buildifier and git diff --check pass.

-zbarskybot

Mark extra_rustc_flag as target-scoped so Bazel 9 drops its values before configuring toolchains, build scripts, and proc macros. rules_rust already omits these values from exec Rustc actions, so keeping them in exec configurations creates unnecessary configuration differences.

Include the existing extra_rustc_flag test in its test suite.
@dzbarsky
dzbarsky merged commit cbebe6d into main Oct 2, 2026
3 checks passed
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