diff options
author | 2016-01-28 15:05:16 +0000 | |
---|---|---|
committer | 2016-01-28 15:30:46 +0000 | |
commit | 849017381db007108b3a9e25b1dbf07b7587d31c (patch) | |
tree | bb1b03a339fedb20d87b9a80e3af8d74b8a8b4f7 /src/main/java/com/google/devtools/build/lib/skyframe/PostConfiguredTargetFunction.java | |
parent | b6fbab7115c1567705e7bddc7b79bdee6313fce3 (diff) |
Refactor DependencyResolver to collect and return loading errors.
This should never be triggered in production, where we always run a loading
phase first and only analyze targets that load successfully. I.e., this is
just plumbing which will be hooked up in a subsequent change.
--
MOS_MIGRATED_REVID=113258593
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/PostConfiguredTargetFunction.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/skyframe/PostConfiguredTargetFunction.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/PostConfiguredTargetFunction.java b/src/main/java/com/google/devtools/build/lib/skyframe/PostConfiguredTargetFunction.java index 284491d996..878caeca08 100644 --- a/src/main/java/com/google/devtools/build/lib/skyframe/PostConfiguredTargetFunction.java +++ b/src/main/java/com/google/devtools/build/lib/skyframe/PostConfiguredTargetFunction.java @@ -101,6 +101,9 @@ public class PostConfiguredTargetFunction implements SkyFunction { buildViewProvider.getSkyframeBuildView().getHostConfiguration(ct.getConfiguration()); SkyframeDependencyResolver resolver = buildViewProvider.getSkyframeBuildView().createDependencyResolver(env); + // We don't track root causes here - this function is only invoked for successfully analyzed + // targets - as long as we redo the exact same steps here as in ConfiguredTargetFunction, this + // can never fail. deps = resolver.dependentNodeMap( ctgValue, hostConfiguration, /*aspect=*/ null, configConditions); |