diff options
author | 2018-07-13 00:52:17 -0700 | |
---|---|---|
committer | 2018-07-13 00:53:50 -0700 | |
commit | 75bc18a6290f9112077884460d61f34bec325814 (patch) | |
tree | bdf837d9c727acd915c8cf7c9a316cd8515f5348 /src/main/java/com/google/devtools/build/lib/exec | |
parent | b39c69394c5e7991ca8d04efac2142c22947a7c5 (diff) |
For all top-level artifacts, track the labels that own them when that is available.
The owning labels are the labels of the top-level configured targets that requested this artifact to be built (there may be many such targets). In cases where the artifact is added not through a configured target (build-info artifacts and coverage artifacts), the label of the artifact's owner is used.
PiperOrigin-RevId: 204432951
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/exec')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/exec/ActionContextProvider.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/exec/ActionContextProvider.java b/src/main/java/com/google/devtools/build/lib/exec/ActionContextProvider.java index 0afdb1366b..909f36a146 100644 --- a/src/main/java/com/google/devtools/build/lib/exec/ActionContextProvider.java +++ b/src/main/java/com/google/devtools/build/lib/exec/ActionContextProvider.java @@ -13,11 +13,13 @@ // limitations under the License. package com.google.devtools.build.lib.exec; +import com.google.common.collect.SetMultimap; import com.google.devtools.build.lib.actions.ActionContext; import com.google.devtools.build.lib.actions.ActionGraph; import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.actions.ExecutorInitException; import com.google.devtools.build.lib.actions.MetadataProvider; +import com.google.devtools.build.lib.cmdline.Label; /** * An object that provides execution strategies to {@link BlazeExecutor}. @@ -50,8 +52,7 @@ public abstract class ActionContextProvider { /** Called when the execution phase is started. */ public void executionPhaseStarting( - ActionGraph actionGraph, - Iterable<Artifact> topLevelArtifacts) + ActionGraph actionGraph, SetMultimap<Artifact, Label> topLevelArtifactsToOwnerLabels) throws ExecutorInitException, InterruptedException {} /** |