From f78843615d9c2fd9b01627b83f4ee56972935c81 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Thu, 19 Oct 2017 22:14:16 +0200 Subject: 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 --- .../com/google/devtools/build/lib/runtime/BuildEventStreamer.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main/java/com/google/devtools/build/lib/runtime') 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; @@ -393,6 +394,11 @@ public class BuildEventStreamer implements EventHandler { abortReason = AbortReason.USER_INTERRUPTED; } + @Subscribe + public void noAnalyze(NoAnalyzeEvent event) { + abortReason = AbortReason.NO_ANALYZE; + } + @Subscribe public void buildEvent(BuildEvent event) { if (isActionWithoutError(event) -- cgit v1.2.3