Skip to content

Commit

Permalink
BEGIN_PUBLIC
Browse files Browse the repository at this point in the history
protobuf: hardwire '--retain_options' protoc flag to true
END_PUBLIC

PiperOrigin-RevId: 681843890
Change-Id: I08905b56f1723cfaf1f30343f21ba91cf9efdfac
  • Loading branch information
ericsalo authored and copybara-github committed Oct 3, 2024
1 parent 16689a4 commit 65e13d4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,7 @@ def _write_descriptor_set(ctx, proto_info, deps, exports, descriptor_set):
args = ctx.actions.args()
if ctx.fragments.proto.experimental_proto_descriptorsets_include_source_info():
args.add("--include_source_info")
if hasattr(ctx.attr, "_retain_options") and ctx.attr._retain_options:
args.add("--retain_options")
args.add("--retain_options")

strict_deps_mode = ctx.fragments.proto.strict_proto_deps()
strict_deps = strict_deps_mode != "OFF" and strict_deps_mode != "DEFAULT"
Expand Down

0 comments on commit 65e13d4

Please sign in to comment.