diff options
author | 2017-09-14 00:47:27 +0200 | |
---|---|---|
committer | 2017-09-14 18:47:05 +0200 | |
commit | 408bfe47a4c692d06d68192dd460a37367ce8245 (patch) | |
tree | 922654640d390402c480878d6f755da5dc0b756c /src/main/java/com/google/devtools/build/lib/skyframe/ConfiguredTargetCycleReporter.java | |
parent | da362c2b3f6ddfd502c9eb5c7896aa528a625db9 (diff) |
Lots more cleanup of "dynamic configurations" comments and test code.
PiperOrigin-RevId: 168607439
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/ConfiguredTargetCycleReporter.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/skyframe/ConfiguredTargetCycleReporter.java | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/ConfiguredTargetCycleReporter.java b/src/main/java/com/google/devtools/build/lib/skyframe/ConfiguredTargetCycleReporter.java index 4e0b959674..9cd2302ee5 100644 --- a/src/main/java/com/google/devtools/build/lib/skyframe/ConfiguredTargetCycleReporter.java +++ b/src/main/java/com/google/devtools/build/lib/skyframe/ConfiguredTargetCycleReporter.java @@ -58,15 +58,9 @@ class ConfiguredTargetCycleReporter extends AbstractLabelCycleReporter { return false; } Iterable<SkyKey> cycleKeys = Iterables.concat(cycleInfo.getPathToCycle(), cycleInfo.getCycle()); - // Static configurations expect all keys to be ConfiguredTargetValue keys. Dynamic - // configurations expect the top-level key to be a ConfiguredTargetValue key, but cycles and - // paths to them can travel through TransitiveTargetValue keys because ConfiguredTargetFunction + // The top-level key should be a ConfiguredTargetValue key, but cycles and paths to it can + // travel through TransitiveTargetValue keys because ConfiguredTargetFunction visits // visits TransitiveTargetFunction as a part of dynamic configuration computation. - // - // Unfortunately this class can't easily figure out if we're in static or dynamic configuration - // mode, so we loosely permit both cases. - // - // TODO: remove the static-style checking once dynamic configurations fully replace them return Iterables.all(cycleKeys, Predicates.<SkyKey>or(IS_CONFIGURED_TARGET_SKY_KEY, IS_TRANSITIVE_TARGET_SKY_KEY)); } |