diff options
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/query2/TransitionsOutputFormatterCallback.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/query2/TransitionsOutputFormatterCallback.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/query2/TransitionsOutputFormatterCallback.java b/src/main/java/com/google/devtools/build/lib/query2/TransitionsOutputFormatterCallback.java index a84386b36a..27685267e8 100644 --- a/src/main/java/com/google/devtools/build/lib/query2/TransitionsOutputFormatterCallback.java +++ b/src/main/java/com/google/devtools/build/lib/query2/TransitionsOutputFormatterCallback.java @@ -127,10 +127,11 @@ public class TransitionsOutputFormatterCallback extends CqueryThreadsafeCallback ((RuleConfiguredTarget) configuredTarget).getConfigConditions(); BuildOptions fromOptions = config.getOptions(); try { - // Note: Being able to pull the $toolchain attr unconditionally from the mapper relies on - // the fact that {@link PlatformSemantics.TOOLCHAIN_ATTRS} exists in every rule. - // Also, we don't actually use fromOptions in our implementation of DependencyResolver but - // passing to avoid passing a null and since we have the information anyway. + // Note: Being able to pull the $resolved_toolchain_internal attr unconditionally from the + // mapper relies on the fact that {@link PlatformSemantics.RESOLVED_TOOLCHAINS_ATTR} exists + // in every rule. Also, we don't actually use fromOptions in our implementation of + // DependencyResolver but passing to avoid passing a null and since we have the information + // anyway. deps = new FormatterDependencyResolver(configuredTarget, reporter) .dependentNodeMap( @@ -140,7 +141,7 @@ public class TransitionsOutputFormatterCallback extends CqueryThreadsafeCallback configConditions, ImmutableSet.copyOf( ConfiguredAttributeMapper.of(target.getAssociatedRule(), configConditions) - .get(PlatformSemantics.TOOLCHAINS_ATTR, BuildType.LABEL_LIST)), + .get(PlatformSemantics.RESOLVED_TOOLCHAINS_ATTR, BuildType.LABEL_LIST)), fromOptions, trimmingTransitionFactory); } catch (EvalException | InvalidConfigurationException | InconsistentAspectOrderException e) { |