diff options
author | 2017-06-19 12:42:43 -0400 | |
---|---|---|
committer | 2017-06-20 14:35:04 -0400 | |
commit | d5cb982844815dbd01ceb0d1439b485afdfb1ed4 (patch) | |
tree | ac694859d5517a607cb2c73ec88baaa9edb311fa /src | |
parent | d3a039b1b755110c3bb8cb249bac4a417a0c693b (diff) |
Add InvocationPolicy to BEP message OptionsParsed.
PiperOrigin-RevId: 159437945
Diffstat (limited to 'src')
3 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/BUILD b/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/BUILD index efff5df2bf..75cedff479 100644 --- a/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/BUILD +++ b/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/BUILD @@ -20,4 +20,7 @@ java_proto_library( proto_library( name = "build_event_stream_proto", srcs = ["build_event_stream.proto"], + deps = [ + "//src/main/protobuf:invocation_policy_proto", + ], ) diff --git a/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto b/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto index 0dc3d124ca..b3649abcaa 100644 --- a/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto +++ b/src/main/java/com/google/devtools/build/lib/buildeventstream/proto/build_event_stream.proto @@ -19,6 +19,8 @@ package build_event_stream; option java_package = "com.google.devtools.build.lib.buildeventstream"; option java_outer_classname = "BuildEventStreamProtos"; +import "src/main/protobuf/invocation_policy.proto"; + // Identifier for a build event. It is deliberately structured to also provide // information about which build target etc the event is related to. // @@ -256,6 +258,7 @@ message OptionsParsed { repeated string explicit_startup_options = 2; repeated string cmd_line = 3; repeated string explicit_cmd_line = 4; + blaze.invocation_policy.InvocationPolicy invocation_policy = 5; } // Payload of an event reporting the workspace status. Key-value pairs can be diff --git a/src/main/java/com/google/devtools/build/lib/runtime/GotOptionsEvent.java b/src/main/java/com/google/devtools/build/lib/runtime/GotOptionsEvent.java index bcf51c946b..2097884cff 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/GotOptionsEvent.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/GotOptionsEvent.java @@ -108,6 +108,8 @@ public class GotOptionsEvent implements BuildEventWithOrderConstraint { } }))); + optionsBuilder.setInvocationPolicy(getInvocationPolicy()); + return GenericBuildEvent.protoChaining(this).setOptionsParsed(optionsBuilder.build()).build(); } |