diff options
author | 2017-07-12 14:59:07 +0200 | |
---|---|---|
committer | 2017-07-12 16:03:11 +0200 | |
commit | 4e9fa1947c838882befd94f95233275e68be82f1 (patch) | |
tree | 93cf377d0e0f8dcd18e77bf74dd215c9cd445adf /src/main/java/com/google/devtools/build/lib/rules/objc/IosDevice.java | |
parent | 425f2496d65d1e190f633236575009e49e1252b3 (diff) |
Make native declared providers not implement TransitiveInfoCollection.
(Almost) all native declared providers are accessed as such and not as
native non-declared providers (inheritors of TransitiveInfoCollaction).
There are still three providers that use
TransitiveInfoCollection.WithLegacySkylarkName mechanism, I'll address
them in the follow-up CL.
RELNOTES: None.
PiperOrigin-RevId: 161655315
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/objc/IosDevice.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/objc/IosDevice.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/objc/IosDevice.java b/src/main/java/com/google/devtools/build/lib/rules/objc/IosDevice.java index 3228825ce1..2a0a2142da 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/objc/IosDevice.java +++ b/src/main/java/com/google/devtools/build/lib/rules/objc/IosDevice.java @@ -43,11 +43,10 @@ public final class IosDevice implements RuleConfiguredTargetFactory { String iosVersionAttribute = context.attributes().get(IosDeviceRule.IOS_VERSION_ATTR_NAME, STRING); XcodeVersionProperties xcodeVersionProperties = - (XcodeVersionProperties) context.getPrerequisite( IosDeviceRule.XCODE_ATTR_NAME, Mode.TARGET, - XcodeVersionProperties.SKYLARK_CONSTRUCTOR.getKey()); + XcodeVersionProperties.SKYLARK_CONSTRUCTOR); DottedVersion xcodeVersion = null; if (xcodeVersionProperties != null && xcodeVersionProperties.getXcodeVersion().isPresent()) { |