diff options
author | mstaib <mstaib@google.com> | 2017-04-04 18:32:23 +0000 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2017-04-05 15:18:44 +0200 |
commit | e5538add58a952c1ef660e417f3f38dabf73b768 (patch) | |
tree | 88798724db95efee2fca8ddf8adbe3cbcf93d35c /src/main/java/com/google/devtools/build/lib/packages/RawAttributeMapper.java | |
parent | 0e02f53599487ef44188cfad3c0115261d7cc993 (diff) |
Generalize ConfigSetting's special options handling.
Currently ConfigSetting is treated specially; TransitiveTargetFunction
identifies it by name, then runs a special function on it. This change
makes ConfigSetting use a new options reference function in RuleClass,
which TransitiveTargetFunction will evaluate over the rule and use with
the options-to-fragments map to figure out which fragments are needed.
Although this is still a hack and not really a new feature on RuleClass,
this avoids a dependency on ConfigSettingRule from TransitiveTargetFunction,
which is necessary for ConfigSettingRule to be moved to rules/config.
RELNOTES: None.
PiperOrigin-RevId: 152156905
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/packages/RawAttributeMapper.java')
0 files changed, 0 insertions, 0 deletions