You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(toolchains): add toolchain_target_settings to python.override
Users who register custom toolchain families (e.g. gated behind a
string_flag like "custom" vs "prebuilt") have no way to prevent the
default-registered toolchains from acting as a silent fallback. When a
user requests a custom toolchain at a version they didn't register,
Bazel's toolchain resolution quietly falls back to the default prebuilt
toolchain instead of producing an error.
Add a `toolchain_target_settings` attribute to `python.override` that
appends the given config_setting labels to the `target_settings` of
every toolchain registered by the module extension. This lets users gate
the default toolchains behind a config_setting so they only resolve when
explicitly selected, giving a clean separation between toolchain
families.
Fixes#3673
0 commit comments