aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/objc/AppleStubBinary.java
diff options
context:
space:
mode:
authorGravatar dslomov <dslomov@google.com>2017-07-25 10:25:01 +0200
committerGravatar Jakob Buchgraber <buchgr@google.com>2017-07-25 13:17:51 +0200
commit6d884afa8da1b08288cb0108e8bbf6c22ec63393 (patch)
tree7baa5a95ee4f6a1be551972912076bcfdead2d35 /src/main/java/com/google/devtools/build/lib/rules/objc/AppleStubBinary.java
parent0bf2e8e7f53962dfebaacc886f983138fef5ab4e (diff)
Make all WithLegacySkylarkName providers declared providers.
RELNOTES: None PiperOrigin-RevId: 163042362
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/objc/AppleStubBinary.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/objc/AppleStubBinary.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/objc/AppleStubBinary.java b/src/main/java/com/google/devtools/build/lib/rules/objc/AppleStubBinary.java
index 00c92f4cb7..6ef4b6a9ac 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/objc/AppleStubBinary.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/objc/AppleStubBinary.java
@@ -111,7 +111,8 @@ public class AppleStubBinary implements RuleConfiguredTargetFactory {
ApplePlatform platform = appleConfiguration.getMultiArchPlatform(platformType);
ImmutableListMultimap<BuildConfiguration, ObjcProvider> configurationToDepsMap =
- ruleContext.getPrerequisitesByConfiguration("deps", Mode.SPLIT, ObjcProvider.class);
+ ruleContext.getPrerequisitesByConfiguration(
+ "deps", Mode.SPLIT, ObjcProvider.SKYLARK_CONSTRUCTOR);
Artifact outputArtifact =
ObjcRuleClasses.intermediateArtifacts(ruleContext).combinedArchitectureBinary();
@@ -131,7 +132,7 @@ public class AppleStubBinary implements RuleConfiguredTargetFactory {
ObjcProvider objcProvider = objcProviderBuilder.build();
// TODO(cparsons): Stop propagating ObjcProvider directly from this rule.
- targetBuilder.addProvider(ObjcProvider.class, objcProvider);
+ targetBuilder.addNativeDeclaredProvider(objcProvider);
targetBuilder.addNativeDeclaredProvider(
new AppleExecutableBinaryProvider(outputArtifact, objcProvider));