aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/runtime
diff options
context:
space:
mode:
authorGravatar Klaus Aehlig <aehlig@google.com>2017-10-19 22:14:16 +0200
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2017-10-20 14:04:05 +0200
commitf78843615d9c2fd9b01627b83f4ee56972935c81 (patch)
tree1c3e7f220b0cc98869897888923bab10f7cb880a /src/main/java/com/google/devtools/build/lib/runtime
parent39fab1020379d8e4554e5ddf1f269f11a37b6953 (diff)
BEP: correctly report the cause of unbuilt targets if --noanalyze is given
If bazel is asked to only load target, but not perform an analysis phase, correctly report this as the cause why the obtained targets wer never configured. Change-Id: Ib630a6dc1b955b810a6cc40254c0ae746e2eca1e PiperOrigin-RevId: 172787777
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/runtime')
-rw-r--r--src/main/java/com/google/devtools/build/lib/runtime/BuildEventStreamer.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/BuildEventStreamer.java b/src/main/java/com/google/devtools/build/lib/runtime/BuildEventStreamer.java
index b393af0cb8..24569b251e 100644
--- a/src/main/java/com/google/devtools/build/lib/runtime/BuildEventStreamer.java
+++ b/src/main/java/com/google/devtools/build/lib/runtime/BuildEventStreamer.java
@@ -51,6 +51,7 @@ import com.google.devtools.build.lib.buildtool.BuildRequest;
import com.google.devtools.build.lib.buildtool.buildevent.BuildCompleteEvent;
import com.google.devtools.build.lib.buildtool.buildevent.BuildInterruptedEvent;
import com.google.devtools.build.lib.buildtool.buildevent.BuildStartingEvent;
+import com.google.devtools.build.lib.buildtool.buildevent.NoAnalyzeEvent;
import com.google.devtools.build.lib.collect.nestedset.NestedSet;
import com.google.devtools.build.lib.collect.nestedset.NestedSetView;
import com.google.devtools.build.lib.events.Event;
@@ -394,6 +395,11 @@ public class BuildEventStreamer implements EventHandler {
}
@Subscribe
+ public void noAnalyze(NoAnalyzeEvent event) {
+ abortReason = AbortReason.NO_ANALYZE;
+ }
+
+ @Subscribe
public void buildEvent(BuildEvent event) {
if (isActionWithoutError(event)
|| bufferUntilPrerequisitesReceived(event)