From 73527c3be5e40ff5a2f868440f0c4d3a940abec7 Mon Sep 17 00:00:00 2001 From: dslomov Date: Thu, 27 Jul 2017 17:35:46 +0200 Subject: Make all WithLegacySkylarkName providers declared providers. RELNOTES: None. PiperOrigin-RevId: 163343931 --- .../google/devtools/build/lib/rules/objc/CompilationAttributes.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/google/devtools/build/lib/rules/objc/CompilationAttributes.java') diff --git a/src/main/java/com/google/devtools/build/lib/rules/objc/CompilationAttributes.java b/src/main/java/com/google/devtools/build/lib/rules/objc/CompilationAttributes.java index 01d25fb7b9..aafd755c9c 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/objc/CompilationAttributes.java +++ b/src/main/java/com/google/devtools/build/lib/rules/objc/CompilationAttributes.java @@ -269,14 +269,15 @@ final class CompilationAttributes { // missing, its private headers will be treated as public! if (ruleContext.attributes().has("deps", BuildType.LABEL_LIST)) { Iterable providers = - ruleContext.getPrerequisites("deps", Mode.TARGET, ObjcProvider.class); + ruleContext.getPrerequisites("deps", Mode.TARGET, ObjcProvider.SKYLARK_CONSTRUCTOR); for (ObjcProvider provider : providers) { moduleMaps.addTransitive(provider.get(TOP_LEVEL_MODULE_MAP)); } } if (ruleContext.attributes().has("non_propagated_deps", BuildType.LABEL_LIST)) { Iterable providers = - ruleContext.getPrerequisites("non_propagated_deps", Mode.TARGET, ObjcProvider.class); + ruleContext.getPrerequisites( + "non_propagated_deps", Mode.TARGET, ObjcProvider.SKYLARK_CONSTRUCTOR); for (ObjcProvider provider : providers) { moduleMaps.addTransitive(provider.get(TOP_LEVEL_MODULE_MAP)); } -- cgit v1.2.3