aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/objc/ObjcLibraryRule.java
diff options
context:
space:
mode:
authorGravatar lberki <lberki@google.com>2017-07-13 12:25:47 +0200
committerGravatar László Csomor <laszlocsomor@google.com>2017-07-14 10:49:19 +0200
commit3c1c8e9cb2d73657422c59872c53b55febf5f5d1 (patch)
tree6ba5ffa5a75c3dd7eb33ea0e280e227679314157 /src/main/java/com/google/devtools/build/lib/rules/objc/ObjcLibraryRule.java
parent7ced4c04b0f93ad0952e98f1c279406975f7011c (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/objc/ObjcLibraryRule.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/objc/ObjcLibraryRule.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/objc/ObjcLibraryRule.java b/src/main/java/com/google/devtools/build/lib/rules/objc/ObjcLibraryRule.java
index 249f27ac7b..5aa9546fb3 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/objc/ObjcLibraryRule.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/objc/ObjcLibraryRule.java
@@ -51,7 +51,7 @@ public class ObjcLibraryRule implements RuleDefinition {
.name("objc_library")
.factoryClass(ObjcLibrary.class)
.ancestors(BaseRuleClasses.BaseRule.class, ObjcRuleClasses.CompilingRule.class,
- ObjcRuleClasses.AlwaysLinkRule.class)
+ ObjcRuleClasses.AlwaysLinkRule.class, BaseRuleClasses.MakeVariableExpandingRule.class)
.build();
}
}