diff options
author | lberki <lberki@google.com> | 2017-07-13 12:25:47 +0200 |
---|---|---|
committer | László Csomor <laszlocsomor@google.com> | 2017-07-14 10:49:19 +0200 |
commit | 3c1c8e9cb2d73657422c59872c53b55febf5f5d1 (patch) | |
tree | 6ba5ffa5a75c3dd7eb33ea0e280e227679314157 /src/main/java/com/google/devtools/build/lib/rules/extra/ExtraActionRule.java | |
parent | 7ced4c04b0f93ad0952e98f1c279406975f7011c (diff) |
Add a toolchains= attribute to *_binary, *_test, cc_library and extra_action rules to declare which Make variables they need.
The idea is that they would depend on the future java_runtime_alias / cc_toolchain_alias and similar rules and thus Bazel will know which Make variables they actually need instead of pulling in the whole BuildConfiguration and also making it possible to compute these Make variables during analysis instead of configuration creation.
RELNOTES: None.
PiperOrigin-RevId: 161785868
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/extra/ExtraActionRule.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/extra/ExtraActionRule.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/extra/ExtraActionRule.java b/src/main/java/com/google/devtools/build/lib/rules/extra/ExtraActionRule.java index 8acf714f1a..f2e5b26e03 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/extra/ExtraActionRule.java +++ b/src/main/java/com/google/devtools/build/lib/rules/extra/ExtraActionRule.java @@ -120,7 +120,7 @@ public final class ExtraActionRule implements RuleDefinition { public Metadata getMetadata() { return RuleDefinition.Metadata.builder() .name("extra_action") - .ancestors(BaseRuleClasses.RuleBase.class) + .ancestors(BaseRuleClasses.RuleBase.class, BaseRuleClasses.MakeVariableExpandingRule.class) .factoryClass(ExtraActionFactory.class) .build(); } |