constraint_value(
name = "my_value",
constraint_setting = "my_setting")
config_setting(
name = "my_value_selectable",
constraint_values = [":my_value"])
some_rule(
...,
attr = select({
":my_value_selectable": ...
})
some_rule(
...,
attr = select({
":my_value": ...
})
Description of the problem / feature request:
A common and annoyingly redundant pattern is:
It would be nice to be able to just write:
Feature requests: what underlying problem are you trying to solve with this feature?
Unnecessary bloat for situations where
config_settingis just abstraction overhead.Have you found anything relevant by searching the web?
Examples:
Also see #7668 and bazelbuild/bazel-skylib#89 (comment).