diff options
author | Klaus Aehlig <aehlig@google.com> | 2017-05-09 07:49:46 -0400 |
---|---|---|
committer | Kristina Chodorow <kchodorow@google.com> | 2017-05-09 10:54:43 -0400 |
commit | 71c993b9e8cd639663dd8898d6e86fb38dbea8b4 (patch) | |
tree | b57c49d30de53ddd16ff7a3cc5efc456fb7f61ad /src/main/java/com/google/devtools/build/lib/pkgcache/TargetParsingCompleteEvent.java | |
parent | 4f647e859203dc3a2f26ab088b95ef1a58c2e3ea (diff) |
BEP: report configurations for targets
In multi-architecture builds, a target might be built several times,
for the different architectures. Make the target completion events for
those distinguishable by indicating the architecture for which the target
was built. Also add the needed event for the expansion of a target to
target-configuration pairs.
Change-Id: I95ef2c81166077163dd686db4671f672160efe1d
PiperOrigin-RevId: 155491076
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/pkgcache/TargetParsingCompleteEvent.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/pkgcache/TargetParsingCompleteEvent.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/pkgcache/TargetParsingCompleteEvent.java b/src/main/java/com/google/devtools/build/lib/pkgcache/TargetParsingCompleteEvent.java index 4a0967af85..704a316358 100644 --- a/src/main/java/com/google/devtools/build/lib/pkgcache/TargetParsingCompleteEvent.java +++ b/src/main/java/com/google/devtools/build/lib/pkgcache/TargetParsingCompleteEvent.java @@ -111,12 +111,12 @@ public class TargetParsingCompleteEvent implements BuildEvent { @Override public Collection<BuildEventId> getChildrenEvents() { - ImmutableList.Builder childrenBuilder = ImmutableList.builder(); + ImmutableList.Builder<BuildEventId> childrenBuilder = ImmutableList.builder(); for (Target target : expandedTargets) { - // Test suits won't produce a target-complete event, so do not anounce their - // completion as children. + // Test suits won't produce target configuration and target-complete events, so do not + // announce here completion as children. if (!TargetUtils.isTestSuiteRule(target)) { - childrenBuilder.add(BuildEventId.targetCompleted(target.getLabel())); + childrenBuilder.add(BuildEventId.targetConfigured(target.getLabel())); } } return childrenBuilder.build(); |